mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
Task
- Date attributes were being saved as strings, which means a default format of YYYY-MM-DDThh:mm:ss, and it should have been epoch.
This commit is contained in:
parent
a559890368
commit
0047bb7325
1 changed files with 6 additions and 2 deletions
|
@ -1929,6 +1929,11 @@ float Task::urgency_blocking () const
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Arguably does not belong here. This method reads the parse tree and calls
|
||||||
|
// Task methods. It could be a standalone function with no loss in access, as
|
||||||
|
// well as reducing the object depdendencies of Task.
|
||||||
|
//
|
||||||
|
// It came from the Command base object, but doesn't really belong there either.
|
||||||
void Task::modify (modType type)
|
void Task::modify (modType type)
|
||||||
{
|
{
|
||||||
std::string text = "";
|
std::string text = "";
|
||||||
|
@ -2006,8 +2011,7 @@ void Task::modify (modType type)
|
||||||
// TODO if v is duration and < 5y, add to now.
|
// TODO if v is duration and < 5y, add to now.
|
||||||
// TODO else store as date.
|
// TODO else store as date.
|
||||||
|
|
||||||
v.cast (Variant::type_string);
|
set (name, v.get_date ());
|
||||||
set (name, v);
|
|
||||||
}
|
}
|
||||||
// Special case: type duration.
|
// Special case: type duration.
|
||||||
// Durations too.
|
// Durations too.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue