CmdBurndown: Converted from Date::daysInMonth to ISO8601d::daysInMonth

This commit is contained in:
Paul Beckingham
2015-09-26 14:08:50 -04:00
parent 0d6788635e
commit 86df438579

View File

@@ -630,7 +630,7 @@ Date Chart::increment (const Date& input)
switch (_period) switch (_period)
{ {
case 'D': case 'D':
if (++d > Date::daysInMonth (m, y)) if (++d > ISO8601d::daysInMonth (m, y))
{ {
d = 1; d = 1;
@@ -644,7 +644,7 @@ Date Chart::increment (const Date& input)
case 'W': case 'W':
d += 7; d += 7;
days = Date::daysInMonth (m, y); days = ISO8601d::daysInMonth (m, y);
if (d > days) if (d > days)
{ {
d -= days; d -= days;
@@ -689,7 +689,7 @@ Date Chart::decrement (const Date& input)
--y; --y;
} }
d = Date::daysInMonth (m, y); d = ISO8601d::daysInMonth (m, y);
} }
break; break;
@@ -703,7 +703,7 @@ Date Chart::decrement (const Date& input)
y--; y--;
} }
d += Date::daysInMonth (m, y); d += ISO8601d::daysInMonth (m, y);
} }
break; break;