Task: Migrated unquoteText to Lexer::dequote

This commit is contained in:
Paul Beckingham 2016-12-11 16:08:47 -05:00
parent b38eae6930
commit 065fd8b6f1

View file

@ -662,14 +662,17 @@ void Task::parseJSON (const json::object* root_obj)
// TW-1274 Standardization.
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 ());
}
// Dates are converted from ISO to epoch.
else if (type == "date")
{
std::string text = unquoteText (i.second->dump ());
auto text = i.second->dump ();
Lexer::dequote (text);
ISO8601d d (text);
set (i.first, text == "" ? "" : d.toEpochString ());
}