mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CmdInfo: Converted from strtol to std::stoul
This commit is contained in:
parent
3745f83a7b
commit
037514bcbf
1 changed files with 2 additions and 2 deletions
|
@ -227,7 +227,7 @@ int CmdInfo::execute (std::string& output)
|
|||
std::string created = task.get ("entry");
|
||||
if (created.length ())
|
||||
{
|
||||
ISO8601d dt (strtol (created.c_str (), NULL, 10));
|
||||
ISO8601d dt (static_cast <time_t> (std::stoul (created)));
|
||||
age = ISO8601p (now - dt).formatVague ();
|
||||
}
|
||||
|
||||
|
@ -543,7 +543,7 @@ int CmdInfo::execute (std::string& output)
|
|||
{
|
||||
int row = journal.addRow ();
|
||||
|
||||
ISO8601d timestamp (strtol (when.substr (5).c_str (), NULL, 10));
|
||||
ISO8601d timestamp (static_cast <time_t> (std::stoul (when.substr (5))));
|
||||
journal.set (row, 0, timestamp.toString (dateformat));
|
||||
|
||||
Task before (previous.substr (4));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue