summaryrefslogtreecommitdiff
path: root/datetime.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-16 20:29:57 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:23 -0400
commit3dc36f24f1e5a88990906219af94f587af69d858 (patch)
tree384dc024d9dbf34bc872d5f5013edad48ffd1e22 /datetime.cc
parentd9137e085b3202fe040631724d2e77be2bd20241 (diff)
downloadfork-ledger-3dc36f24f1e5a88990906219af94f587af69d858.tar.gz
fork-ledger-3dc36f24f1e5a88990906219af94f587af69d858.tar.bz2
fork-ledger-3dc36f24f1e5a88990906219af94f587af69d858.zip
(parse): The period phrase "every month" was not working (it required
you to say "every monthly").
Diffstat (limited to 'datetime.cc')
-rw-r--r--datetime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/datetime.cc b/datetime.cc
index f3434112..16c1e04e 100644
--- a/datetime.cc
+++ b/datetime.cc
@@ -237,7 +237,7 @@ void interval_t::parse(std::istream& in)
seconds = 86400;
else if (word == "week")
seconds = 7 * 86400;
- else if (word == "monthly")
+ else if (word == "month")
months = 1;
else if (word == "quarter")
months = 3;