From d176abf6254cd209d712009f3b3b807fbb6a0b12 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 16 Jan 2010 21:12:13 -0500 Subject: Fix for date parsing when no year is given --- src/times.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/times.cc') diff --git a/src/times.cc b/src/times.cc index d4317509..7ea3ae32 100644 --- a/src/times.cc +++ b/src/times.cc @@ -224,7 +224,7 @@ namespace { when = date_t(year ? *year : CURRENT_DATE().year(), when.month(), when.day()); - if (when.month() > CURRENT_DATE().month()) + if (! year && when.month() > CURRENT_DATE().month()) when -= gregorian::years(1); } } -- cgit v1.2.3