TI-100: Fix expansion of :lastquarter when in first quarter

This commit is contained in:
Thomas Lauf 2018-01-15 20:27:35 +01:00
parent f5622c07c3
commit 8e2e350cab
3 changed files with 11 additions and 3 deletions

View file

@ -58,3 +58,4 @@ suggestions:
Bodo Graumann
Lynoure
Tim Ruffing
Andreas Poisel

View file

@ -70,7 +70,9 @@
(thanks to Tim Ruffing)
- TI-90 Let 'continue' accept a date or a date range
- TI-91 Timewarrior does not compile on DragonFly
(thanks to Michael Neumann).
(thanks to Michael Neumann)
- TI-100 :lastquarter throws exception in first quarter
(thanks to Andreas Poisel)
- Fixed Python 3 support of the holiday/refresh script
(thanks to Jelle van der Waa).
- Added missing man page link

View file

@ -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,