mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task: Migrated unquoteText to Lexer::dequote
This commit is contained in:
parent
b38eae6930
commit
065fd8b6f1
1 changed files with 5 additions and 2 deletions
|
@ -662,14 +662,17 @@ void Task::parseJSON (const json::object* root_obj)
|
||||||
// TW-1274 Standardization.
|
// TW-1274 Standardization.
|
||||||
else if (i.first == "modification")
|
else if (i.first == "modification")
|
||||||
{
|
{
|
||||||
ISO8601d d (unquoteText (i.second->dump ()));
|
auto text = i.second->dump ();
|
||||||
|
Lexer::dequote (text);
|
||||||
|
ISO8601d d (text);
|
||||||
set ("modified", d.toEpochString ());
|
set ("modified", d.toEpochString ());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dates are converted from ISO to epoch.
|
// Dates are converted from ISO to epoch.
|
||||||
else if (type == "date")
|
else if (type == "date")
|
||||||
{
|
{
|
||||||
std::string text = unquoteText (i.second->dump ());
|
auto text = i.second->dump ();
|
||||||
|
Lexer::dequote (text);
|
||||||
ISO8601d d (text);
|
ISO8601d d (text);
|
||||||
set (i.first, text == "" ? "" : d.toEpochString ());
|
set (i.first, text == "" ? "" : d.toEpochString ());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue