mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
TI-100: Fix expansion of :lastquarter when in first quarter
This commit is contained in:
parent
f5622c07c3
commit
8e2e350cab
3 changed files with 11 additions and 3 deletions
|
@ -260,8 +260,13 @@ bool expandIntervalHint (
|
|||
|
||||
m = ((q - 1) * 3) + 1;
|
||||
|
||||
range.start = Datetime (y, m, 1);
|
||||
range.end = Datetime (y, m + 3, 1);
|
||||
range.start = Datetime (y, m, 1);
|
||||
|
||||
m += 3;
|
||||
y += m/12;
|
||||
m %= 12;
|
||||
|
||||
range.end = Datetime (y, m, 1);
|
||||
|
||||
debug (format ("Hint {1} expanded to {2} - {3}",
|
||||
hint,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue