mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-25 21:27:19 +02:00
Unit Tests
- Improved args.5.t, which was attempting to stop tasks that were not started.
This commit is contained in:
parent
d5849b0160
commit
8e0296468e
4 changed files with 18 additions and 3 deletions
|
@ -87,9 +87,7 @@ int CmdStart::execute (std::string& output)
|
|||
apply_defaults (*task);
|
||||
|
||||
// Add a start time.
|
||||
char startTime[16];
|
||||
sprintf (startTime, "%u", (unsigned int) time (NULL));
|
||||
task->set ("start", startTime);
|
||||
task->setStart ();
|
||||
|
||||
if (context.config.getBoolean ("journal.time"))
|
||||
task->addAnnotation (context.config.get ("journal.time.start.annotation"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue