mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1471
- TW-1471 task calc uses output it doesn't understand (thanks to Jens Erat).
This commit is contained in:
parent
63dcea9c37
commit
d01d2109cf
3 changed files with 11 additions and 12 deletions
|
@ -191,6 +191,7 @@
|
|||
Boß).
|
||||
- TW-1469 Case-insensitive searching broken on Cygwin (thanks to Richard
|
||||
Boß).
|
||||
- TW-1471 task calc uses output it doesn't understand (thanks to Jens Erat).
|
||||
- Added new holidays.xy-XY.rc definition files
|
||||
- Removed deprecated 'echo.command' setting, in favor of the 'header' and
|
||||
'affected' verbosity tokens.
|
||||
|
|
|
@ -647,7 +647,7 @@ void CLI::addArg (const std::string& arg)
|
|||
isID (raw) || // <id>
|
||||
isPattern (raw) || // /<pattern</
|
||||
isSubstitution (raw) || // /<from>/<to>/[g]
|
||||
isAttribute (raw) || // <name>[.[~]<modfifier>]:<value>
|
||||
isAttribute (raw) || // <name>[.[~]<modifier>]:<value>
|
||||
isOperator (raw)) // <operator>
|
||||
{
|
||||
_original_args.push_back (raw);
|
||||
|
|
|
@ -2062,21 +2062,19 @@ void Variant::cast (const enum type new_type)
|
|||
case type_date:
|
||||
{
|
||||
_date = 0;
|
||||
if (dateFormat != "")
|
||||
|
||||
ISO8601d iso;
|
||||
std::string::size_type pos = 0;
|
||||
if (iso.parse (_string, pos) &&
|
||||
pos == _string.length ())
|
||||
{
|
||||
_date = (time_t) iso;
|
||||
}
|
||||
else if (dateFormat != "")
|
||||
{
|
||||
Date d (_string, dateFormat);
|
||||
_date = d.toEpoch ();
|
||||
}
|
||||
else
|
||||
{
|
||||
ISO8601d iso;
|
||||
std::string::size_type pos = 0;
|
||||
if (iso.parse (_string, pos) &&
|
||||
pos == _string.length ())
|
||||
{
|
||||
_date = (time_t) iso;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case type_duration:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue