summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-01-18 12:54:41 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-01-18 12:54:41 -0500
commitc6873d32aa121289e87be7eb16ff531c6d468d2a (patch)
treec77cbf49617aea589cac7c4b0ca245f426793fd5 /src/times.cc
parente3c8b91b5faedafd6b8f6a9a4c54638eba78c769 (diff)
parent67ce17e24959f55a4cd55857c7741d058397d758 (diff)
downloadfork-ledger-c6873d32aa121289e87be7eb16ff531c6d468d2a.tar.gz
fork-ledger-c6873d32aa121289e87be7eb16ff531c6d468d2a.tar.bz2
fork-ledger-c6873d32aa121289e87be7eb16ff531c6d468d2a.zip
Merge branch 'next'
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);
}
}