diff --git a/src/commands/CmdInfo.cpp b/src/commands/CmdInfo.cpp index 3785ab2a5..59ce53a3c 100644 --- a/src/commands/CmdInfo.cpp +++ b/src/commands/CmdInfo.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -231,7 +231,7 @@ int CmdInfo::execute (std::string& output) if (created.length ()) { Date dt (strtol (created.c_str (), NULL, 10)); - age = OldDuration (now - dt).format (); + age = Duration (now - dt).format (); } view.set (row, 1, entry + " (" + age + ")"); @@ -291,7 +291,7 @@ int CmdInfo::execute (std::string& output) view.set (row, 0, STRING_CMD_INFO_MODIFIED); Date mod (task->get_date ("modified")); - std::string age = OldDuration (now - mod).format (); + std::string age = Duration (now - mod).format (); view.set (row, 1, mod.toString (dateformat) + " (" + age + ")"); } @@ -340,7 +340,7 @@ int CmdInfo::execute (std::string& output) if (type == "date") value = Date (value).toString (dateformat); else if (type == "duration") - value = OldDuration (value).formatCompact (); + value = Duration (value).formatCompact (); view.set (row, 1, value); } @@ -436,7 +436,7 @@ int CmdInfo::execute (std::string& output) { row = journal.addRow (); journal.set (row, 0, STRING_CMD_INFO_TOTAL_ACTIVE); - journal.set (row, 1, OldDuration (total_time).formatPrecise (), + journal.set (row, 1, Duration (total_time).formatPrecise (), (context.color () ? Color ("bold") : Color ())); } }