From 768172e9886966c2af0f7b3b67bb0ea42f12165a Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 31 Jan 2002 11:56:24 +0000 Subject: [PATCH] make "18:00 yesterday" work Pavel Mores git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@70 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/parsetime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/src/parsetime.c b/program/src/parsetime.c index cea967ca..a081d585 100644 --- a/program/src/parsetime.c +++ b/program/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: -- 2.30.2