]> git.stg.codes - stg.git/commitdiff
Infer DST from the current locale for mktime.
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 31 Aug 2016 18:54:15 +0000 (21:54 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 31 Aug 2016 18:54:15 +0000 (21:54 +0300)
projects/stargazer/stg_timer.cpp

index 5bdbe7127288ad7d3aa0329f16946d21348f7185..572b069a511ff166ba9e6d82814f1af512048b11 100644 (file)
@@ -44,6 +44,7 @@ lt.tm_mon  = 7 - 1;      // Nov
 lt.tm_hour = 23;          // 23 h
 lt.tm_min = 57;           // 50 min
 lt.tm_sec = 0;            // 00 sec
+lt.tm_isdst = -1;
 
 switch (START_TIME)
     {