mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Datafile: Fixed Datetime::daysInMonth call with args in the wrong order
This commit is contained in:
parent
34079ff28e
commit
0796e0c522
1 changed files with 10 additions and 2 deletions
|
@ -42,7 +42,7 @@ void Datafile::initialize (const std::string& name)
|
||||||
|
|
||||||
// Construct two dates that
|
// Construct two dates that
|
||||||
_day1 = Datetime (month, 1, year, 0 , 0, 0);
|
_day1 = Datetime (month, 1, year, 0 , 0, 0);
|
||||||
_dayN = Datetime (month, Datetime::daysInMonth (year, month), year, 23, 59, 59);
|
_dayN = Datetime (month, Datetime::daysInMonth (month, year), year, 23, 59, 59);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -198,7 +198,15 @@ void Datafile::load_intervals ()
|
||||||
|
|
||||||
// "exc ..."
|
// "exc ..."
|
||||||
else if (line[0] == 'e')
|
else if (line[0] == 'e')
|
||||||
; // TODO Exclusions.
|
{
|
||||||
|
/*
|
||||||
|
Exclusion e;
|
||||||
|
e.initialize (line);
|
||||||
|
_intervals.push_back (i);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
// ?
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO Ignore blank lines?
|
// TODO Ignore blank lines?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue