Fix __dt_to_timespec primitive function.
authorConti Manuele <conti.ma@alice.it>
Thu, 03 May 2012 17:43:32 +0200
changeset 539 1ff26534a54f
parent 538 06cc7500500d
child 548 7cc08964e0a7
Fix __dt_to_timespec primitive function.
Set tm_isdst = 0 to disable DayLight Savig Time.
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)