From d351c9faf24166edfa957cafe2a807b9bc0f35e4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 26 Sep 2015 14:12:23 -0400 Subject: [PATCH] Dates: Converted from Date::daysInMonth to ISO8601d::daysInMonth --- src/Dates.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Dates.cpp b/src/Dates.cpp index a4bb15228..14a8b0b7c 100644 --- a/src/Dates.cpp +++ b/src/Dates.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -302,7 +303,7 @@ bool namedDates (const std::string& name, Variant& value) t->tm_hour = 24; t->tm_min = 0; t->tm_sec = -1; - t->tm_mday = Date::daysInMonth (t->tm_mon + 1, t->tm_year + 1900); + t->tm_mday = ISO8601d::daysInMonth (t->tm_mon + 1, t->tm_year + 1900); t->tm_isdst = -1; value = Variant (mktime (t), Variant::type_date); } @@ -414,7 +415,7 @@ bool namedDates (const std::string& name, Variant& value) // If it is this month. if (d < number && - number <= Date::daysInMonth (m, y)) + number <= ISO8601d::daysInMonth (m, y)) { t->tm_hour = t->tm_min = t->tm_sec = 0; t->tm_mon = m - 1;