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
1
AUTHORS
1
AUTHORS
|
@ -58,3 +58,4 @@ suggestions:
|
|||
Bodo Graumann
|
||||
Lynoure
|
||||
Tim Ruffing
|
||||
Andreas Poisel
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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