summaryrefslogtreecommitdiff
path: root/rt-liberation.el
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2021-03-05 11:36:03 -0500
committerYoni Rabkin <yoni@rabkins.net>2021-03-05 11:36:03 -0500
commit000c356e588789e75bd065308db6b1656e26fe08 (patch)
tree81db12299b845c1fa909f5b0727df59c003b4e14 /rt-liberation.el
parent78b9cfbb3bdde5c589904e987304f8726c841992 (diff)
* rt-liberation.el: bug fix
Fix "comb" effect with the dates.
Diffstat (limited to 'rt-liberation.el')
-rw-r--r--rt-liberation.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/rt-liberation.el b/rt-liberation.el
index a2b116a..04d9965 100644
--- a/rt-liberation.el
+++ b/rt-liberation.el
@@ -1263,12 +1263,12 @@ ASSOC-BROWSER if non-nil should be a ticket browser."
((< 0 days-ago 7)
(format "%s day%s ago" days-ago
(rt-liber-viewer2-vernacular-plural days-ago)))
- ((< 7 days-ago 30)
+ ((<= 7 days-ago 30)
(let ((weeks (floor (/ days-ago 7.0))))
(format "%s week%s ago"
weeks
(rt-liber-viewer2-vernacular-plural weeks))))
- ((< 30 days-ago 365)
+ ((<= 30 days-ago 365)
(let ((months (floor (/ days-ago 30.0))))
(format "%s month%s ago"
months