CmdBurndown: Converted from Date::daysInMonth to ISO8601d::daysInMonth
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user