mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
calc: Uses same configuration setting for Datetime/Duration as task
This commit is contained in:
parent
2949a7e86a
commit
a9ff077046
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,8 @@
|
|||
#include <Eval.h>
|
||||
#include <Context.h>
|
||||
#include <Task.h>
|
||||
#include <Datetime.h>
|
||||
#include <Duration.h>
|
||||
#include <shared.h>
|
||||
#include <format.h>
|
||||
#include <i18n.h>
|
||||
|
@ -57,6 +59,11 @@ int main (int argc, char** argv)
|
|||
|
||||
try
|
||||
{
|
||||
// Same operating parameters as Context::staticInitialization.
|
||||
Datetime::standaloneDateEnabled = false;
|
||||
Datetime::standaloneTimeEnabled = false;
|
||||
Duration::standaloneSecondsEnabled = false;
|
||||
|
||||
bool infix {true};
|
||||
|
||||
// Add a source for constants.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue