summaryrefslogtreecommitdiff
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
commit71a0ad82b9fd79326906e02c7f2b6e4b20edf8ff (patch)
tree384dc024d9dbf34bc872d5f5013edad48ffd1e22
parent917ef6934c4b1db63ac6a7283843143732f888b9 (diff)
downloadfork-ledger-71a0ad82b9fd79326906e02c7f2b6e4b20edf8ff.tar.gz
fork-ledger-71a0ad82b9fd79326906e02c7f2b6e4b20edf8ff.tar.bz2
fork-ledger-71a0ad82b9fd79326906e02c7f2b6e4b20edf8ff.zip
(parse): The period phrase "every month" was not working (it required
you to say "every monthly").
-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;