# HG changeset patch # User Conti Manuele # Date 1336059812 -7200 # Node ID 1ff26534a54f8194b92e7e001fbb581e96009d85 # Parent 06cc7500500da37c1fe7390dbb09cea8cd379d71 Fix __dt_to_timespec primitive function. Set tm_isdst = 0 to disable DayLight Savig Time. diff -r 06cc7500500d -r 1ff26534a54f lib/iec_std_lib.h --- a/lib/iec_std_lib.h Wed May 02 14:46:48 2012 +0200 +++ b/lib/iec_std_lib.h Thu May 03 17:43:32 2012 +0200 @@ -261,6 +261,7 @@ broken_down_time.tm_mday = day; /* day of month, from 1 to 31 */ broken_down_time.tm_mon = month - 1; /* month since January, in the range 0 to 11 */ broken_down_time.tm_year = year - 1900; /* number of years since 1900 */ + broken_down_time.tm_isdst = 0; /* disable daylight savings time */ epoch_seconds = mktime(&broken_down_time); /* determine number of seconds since the epoch, i.e. Jan 1st 1970 */ if ((time_t)(-1) == epoch_seconds)