diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/times.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/times.cc b/src/times.cc index 7ddc7bd4..c3b5009d 100644 --- a/src/times.cc +++ b/src/times.cc @@ -97,7 +97,7 @@ namespace { if (result.tm_year == -1) { result.tm_year = (year == -1 ? int(CURRENT_DATE().year()) : year) - 1900; - if (result.tm_mon > (CURRENT_DATE().month() - 1)) + if (year == -1 && result.tm_mon > (CURRENT_DATE().month() - 1)) result.tm_year--; } |