summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/times.cc b/src/times.cc
index d4317509..7ea3ae32 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -224,7 +224,7 @@ namespace {
when = date_t(year ? *year : CURRENT_DATE().year(),
when.month(), when.day());
- if (when.month() > CURRENT_DATE().month())
+ if (! year && when.month() > CURRENT_DATE().month())
when -= gregorian::years(1);
}
}