From: Tobias Oetiker Date: Tue, 10 Apr 2012 10:12:28 +0000 (+0000) Subject: make sure the grid and label positioner does NOT take the dst state of the current... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a99e341faeb5dac7f63ccd2379a2549f4b752b57;p=thirdparty%2Frrdtool-1.x.git 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.3/program@2286 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2db9eea3..5b185956 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -1343,6 +1343,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: @@ -1411,6 +1413,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; do { switch (baseint) {