mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
libshared: Accomodated new argument order for Datetime
This commit is contained in:
parent
a7ffd46122
commit
24bb8ade7a
4 changed files with 20 additions and 20 deletions
|
@ -42,14 +42,14 @@ void Datafile::initialize (const std::string& name)
|
|||
auto month = strtol (basename.substr (5, 2).c_str (), NULL, 10);
|
||||
|
||||
// The range is a month: [start, end).
|
||||
Datetime start (month, 1, year, 0, 0, 0);
|
||||
Datetime start (year, month, 1, 0, 0, 0);
|
||||
month++;
|
||||
if (month > 12)
|
||||
{
|
||||
year++;
|
||||
month = 1;
|
||||
}
|
||||
Datetime end (month, 1, year, 0, 0, 0);
|
||||
Datetime end (year, month, 1, 0, 0, 0);
|
||||
_range = Range (start, end);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue