Task
- ::modify was not casting strings to dates for date types.
This commit is contained in:
@@ -195,14 +195,10 @@ int Context::initialize (int argc, const char** argv)
|
|||||||
parser.findIdSequence (); // <id>
|
parser.findIdSequence (); // <id>
|
||||||
parser.injectDefaults (); // rc.default.command
|
parser.injectDefaults (); // rc.default.command
|
||||||
|
|
||||||
// Static initialization to decouple code.
|
staticInitialization (); // Decouple code from Context.
|
||||||
staticInitialization ();
|
parser.parse (); // Parse all elements.
|
||||||
|
|
||||||
// Parse the command line.
|
tdb2.set_location (data_dir); // Prepare the task database.
|
||||||
parser.parse ();
|
|
||||||
|
|
||||||
// Initialize the database.
|
|
||||||
tdb2.set_location (data_dir);
|
|
||||||
|
|
||||||
// First opportunity to run a hook script.
|
// First opportunity to run a hook script.
|
||||||
hooks.initialize ();
|
hooks.initialize ();
|
||||||
|
|||||||
@@ -2038,6 +2038,7 @@ void Task::modify (modType type, bool text_required /* = false */)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
v.cast (Variant::type_date);
|
||||||
context.debug (label + name + " <-- " + format ("{1}", v.get_date ()) + " <-- " + (std::string) v + " <-- " + value);
|
context.debug (label + name + " <-- " + format ("{1}", v.get_date ()) + " <-- " + (std::string) v + " <-- " + value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user