From: Tobias Oetiker Date: Wed, 14 Feb 2007 06:33:49 +0000 (+0000) Subject: parsing absolute time should not send us 30,000 years into the future -- Tatsuki... X-Git-Tag: 1.2.20~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b48a682b0d0425364f2375f4f06908e1a11aac86;p=thirdparty%2Frrdtool-1.x.git parsing absolute time should not send us 30,000 years into the future -- Tatsuki Makino tatsuki_makino hotmail.com git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1002 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/parsetime.c b/src/parsetime.c index 47ddbbfc..919dd50b 100644 --- a/src/parsetime.c +++ b/src/parsetime.c @@ -850,7 +850,7 @@ parsetime(const char *tspec, struct rrd_time_value *ptv) if ( ptv->tm.tm_hour == 30 ){ ptv->tm.tm_hour = hour_sv; } - if ( ptv->tm.tm_hour == 30000 ){ + if ( ptv->tm.tm_year == 30000 ){ ptv->tm.tm_year = year_sv; } };