mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Dates
- 'eoy' is not YYYY-12-31T00:00:00, it's one day later.
This commit is contained in:
parent
d2685a8212
commit
20de57e87c
1 changed files with 1 additions and 10 deletions
|
@ -245,7 +245,7 @@ bool namedDates (const std::string& name, Variant& value)
|
|||
value = Variant (mktime (t), Variant::type_date);
|
||||
}
|
||||
|
||||
else if (name == "soy")
|
||||
else if (name == "soy" || name == "eoy")
|
||||
{
|
||||
t->tm_hour = t->tm_min = t->tm_sec = 0;
|
||||
t->tm_mon = 0;
|
||||
|
@ -255,15 +255,6 @@ bool namedDates (const std::string& name, Variant& value)
|
|||
value = Variant (mktime (t), Variant::type_date);
|
||||
}
|
||||
|
||||
else if (name == "eoy")
|
||||
{
|
||||
t->tm_hour = t->tm_min = t->tm_sec = 0;
|
||||
t->tm_mon = 11;
|
||||
t->tm_mday = 31;
|
||||
t->tm_isdst = -1;
|
||||
value = Variant (mktime (t), Variant::type_date);
|
||||
}
|
||||
|
||||
else if (name == "soq" || name == "eoq")
|
||||
{
|
||||
t->tm_hour = t->tm_min = t->tm_sec = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue