From: oetiker Date: Thu, 31 Jan 2002 11:56:24 +0000 (+0000) Subject: make "18:00 yesterday" work Pavel Mores X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1f6180d370e99a278608310bb74a0502f346a583;p=rrdtool.git make "18:00 yesterday" work Pavel Mores git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@70 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/parsetime.c b/src/parsetime.c index cea967c..a081d58 100644 --- a/src/parsetime.c +++ b/src/parsetime.c @@ -697,6 +697,7 @@ day(struct time_value *ptv) */ wday = (sc_tokid-SUN); ptv->tm.tm_mday += (wday - ptv->tm.tm_wday); + token(); break; /* mday = ptv->tm.tm_mday; @@ -835,7 +836,8 @@ parsetime(char *tspec, struct time_value *ptv) /* Only absolute time specifications below */ case NUMBER: try(tod(ptv)) - if (sc_tokid != NUMBER) break; + try(day(ptv)) + break; /* fix month parsing */ case JAN: case FEB: case MAR: case APR: case MAY: case JUN: case JUL: case AUG: case SEP: case OCT: case NOV: case DEC: