From 877c6fae9ee02ebbe184aae160d1c26abf8d6701 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 15 Jun 2014 19:14:24 -0400 Subject: [PATCH] Dates - 'eom' and 'eocm' are not on YYYY-MM-{28,30,31}T00:00:00, they are one day later. --- src/Dates.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Dates.cpp b/src/Dates.cpp index 79c2dce7d..f1e32adff 100644 --- a/src/Dates.cpp +++ b/src/Dates.cpp @@ -296,7 +296,8 @@ bool namedDates (const std::string& name, Variant& value) else if (name == "eom" || name == "eocm") { - t->tm_hour = t->tm_min = t->tm_sec = 0; + t->tm_min = t->tm_sec = 0; + t->tm_hour = 24; t->tm_mday = daysInMonth (t->tm_year + 1900, t->tm_mon + 1); t->tm_isdst = -1; value = Variant (mktime (t), Variant::type_date);