diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp index 8b47fd193..d137daa3a 100644 --- a/src/commands/CmdCalendar.cpp +++ b/src/commands/CmdCalendar.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -317,7 +318,7 @@ int CmdCalendar::execute (std::string& output) details_mFrom = 12; --details_yFrom; } - int details_dFrom = Date::daysInMonth (details_mFrom, details_yFrom); + int details_dFrom = ISO8601d::daysInMonth (details_mFrom, details_yFrom); ++mTo; if (mTo == 13) @@ -487,7 +488,7 @@ std::string CmdCalendar::renderMonths ( years.push_back (++thisYear); } months.push_back (thisMonth); - daysInMonth.push_back (Date::daysInMonth (thisMonth++, thisYear)); + daysInMonth.push_back (ISO8601d::daysInMonth (thisMonth++, thisYear)); } int row = 0;