From 5517871144e61ec1c7bad8f4dd96e0672e63f9d1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 28 Feb 2012 21:19:36 -0600 Subject: Corrected problem with parsing of leap days --- src/times.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/times.cc') diff --git a/src/times.cc b/src/times.cc index 9712c2ee..8ea90892 100644 --- a/src/times.cc +++ b/src/times.cc @@ -173,6 +173,7 @@ namespace { #else // USE_BOOST_FACETS std::tm data; std::memset(&data, 0, sizeof(std::tm)); + data.tm_year = CURRENT_DATE().year() - 1900; data.tm_mday = 1; // some formats have no day if (strptime(str, fmt_str, &data)) return gregorian::date_from_tm(data); -- cgit v1.2.3