mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Bug
- Fixed bug where ISO dates were parsed and the TZ was modified, which should have no bearing on a Zulu time.
This commit is contained in:
parent
dd73cc1ccf
commit
2c07837852
3 changed files with 15 additions and 21 deletions
|
@ -131,13 +131,13 @@ Date::Date (const std::string& input, const std::string& format /* = "m/d/Y" */)
|
|||
if (isRelativeDate (input))
|
||||
return;
|
||||
|
||||
// Parse an ISO date.
|
||||
// Parse a formatted date.
|
||||
Nibbler n (input);
|
||||
if (n.getDateISO (_t) && n.depleted ())
|
||||
if (n.getDate (format, _t) && n.depleted ())
|
||||
return;
|
||||
|
||||
// Parse a formatted date.
|
||||
if (n.getDate (format, _t) && n.depleted ())
|
||||
// Parse an ISO date.
|
||||
if (n.getDateISO (_t) && n.depleted ())
|
||||
return;
|
||||
|
||||
// Perhaps it is an epoch date, in string form?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue