mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 22:33:08 +02:00
Dates
- 'eom' and 'eocm' are not on YYYY-MM-{28,30,31}T00:00:00, they are one day later.
This commit is contained in:
parent
20de57e87c
commit
877c6fae9e
1 changed files with 2 additions and 1 deletions
|
@ -296,7 +296,8 @@ bool namedDates (const std::string& name, Variant& value)
|
||||||
|
|
||||||
else if (name == "eom" || name == "eocm")
|
else if (name == "eom" || name == "eocm")
|
||||||
{
|
{
|
||||||
t->tm_hour = t->tm_min = t->tm_sec = 0;
|
t->tm_min = t->tm_sec = 0;
|
||||||
|
t->tm_hour = 24;
|
||||||
t->tm_mday = daysInMonth (t->tm_year + 1900, t->tm_mon + 1);
|
t->tm_mday = daysInMonth (t->tm_year + 1900, t->tm_mon + 1);
|
||||||
t->tm_isdst = -1;
|
t->tm_isdst = -1;
|
||||||
value = Variant (mktime (t), Variant::type_date);
|
value = Variant (mktime (t), Variant::type_date);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue