[rrd-developers] Daylight saving time change issue with rrdtool fetch

Tobias Oetiker tobi at oetiker.ch
Sat Apr 12 11:19:16 CEST 2008


Hi Hermann,

I guess I should just not mess with DST so much ...

Index: parsetime.c
===================================================================
--- parsetime.c (revision 1286)
+++ parsetime.c (working copy)
@@ -915,7 +916,6 @@
       panic(e("unparsable trailing text: '...%s%s'", sc_token, sct));
     }

-    ptv->tm.tm_isdst = -1; /* for mktime to guess DST status */
     if( ptv->type == ABSOLUTE_TIME )
       if( mktime( &ptv->tm ) == -1 ) { /* normalize & check */
         /* can happen for "nonexistent" times, e.g. around 3am */

cheers
tobi

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902



More information about the rrd-developers mailing list