make sure the grid and label positioner does NOT take the dst state of the current...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 10 Apr 2012 10:12:28 +0000 (10:12 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 10 Apr 2012 10:12:28 +0000 (10:12 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2286 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 799e682..8935d4e 100644 (file)
@@ -1426,6 +1426,8 @@ time_t find_first_time(
     struct tm tm;
 
     localtime_r(&start, &tm);
     struct tm tm;
 
     localtime_r(&start, &tm);
+    /* let mktime figure this dst on its own */
+    tm.tm_isdst = -1;
 
     switch (baseint) {
     case TMT_SECOND:
 
     switch (baseint) {
     case TMT_SECOND:
@@ -1494,6 +1496,8 @@ time_t find_next_time(
     time_t    madetime;
 
     localtime_r(&current, &tm);
     time_t    madetime;
 
     localtime_r(&current, &tm);
+    /* let mktime figure this dst on its own */
+    tm.tm_isdst = -1;
 
     int limit = 2;
     switch (baseint) {
 
     int limit = 2;
     switch (baseint) {