summaryrefslogtreecommitdiff
path: root/pith/mailindx.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/mailindx.c')
-rw-r--r--pith/mailindx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/mailindx.c b/pith/mailindx.c
index 4c649964..3d7e5c70 100644
--- a/pith/mailindx.c
+++ b/pith/mailindx.c
@@ -4961,7 +4961,7 @@ date_str(char *datesrc, IndexColType type, int v, char *str, size_t str_len,
/* (if message dated this month or last month...) */
if((d.year == now.year && d.month >= now.month - 6) ||
- (d.year == now.year - 1 && d.month == 12 && now.month == 6)){
+ (d.year == now.year - 1 && d.month == 12 && now.month <= 6)){
daydiff = day_of_year(&now) - day_of_year(&d);