From 169b16aa436e5877a367eac1154864202d477af2 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 10 Apr 2012 10:12:28 +0000 Subject: [PATCH] make sure the grid and label positioner does NOT take the dst state of the current time into account. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2286 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 5f70a384..7afd5bb4 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -1402,6 +1402,8 @@ time_t find_first_time( struct tm tm; localtime_r(&start, &tm); + /* let mktime figure this dst on its own */ + tm.tm_isdst = -1; switch (baseint) { case TMT_SECOND: @@ -1470,6 +1472,8 @@ time_t find_next_time( time_t madetime; localtime_r(¤t, &tm); + /* let mktime figure this dst on its own */ + tm.tm_isdst = -1; int limit = 2; switch (baseint) { -- 2.30.2