diff --git a/AUTHORS b/AUTHORS index a662a342..2f988a43 100644 --- a/AUTHORS +++ b/AUTHORS @@ -58,3 +58,4 @@ suggestions: Bodo Graumann Lynoure Tim Ruffing + Andreas Poisel diff --git a/ChangeLog b/ChangeLog index 0ab2f36b..f09e20ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/helper.cpp b/src/helper.cpp index 9cc4e7ef..ee0c54cb 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -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,