mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
init: Set Datetime names to refer to the past, not the future
This commit is contained in:
parent
22777067c4
commit
67949c3a43
1 changed files with 4 additions and 0 deletions
|
@ -167,6 +167,10 @@ void initializeDataAndRules (
|
||||||
|
|
||||||
// Initialize the database (no data read), but files are enumerated.
|
// Initialize the database (no data read), but files are enumerated.
|
||||||
database.initialize (data._data);
|
database.initialize (data._data);
|
||||||
|
|
||||||
|
// Set date names like "monday" to represent the past, not the future.
|
||||||
|
// TODO Make this configurable?
|
||||||
|
Datetime::lookForwards = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue