summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-10-02 18:33:26 -0400
committerMartin Michlmayr <tbm@cyrius.com>2014-10-02 18:33:26 -0400
commit96223f9e2032e359c08218861f636e4f97edf2cd (patch)
tree07eb3afe3c6cd4eba893cecd0de835235c182093 /src/times.cc
parentfbcb5e9093464fb53c2d5f55caf161e71d6a9f02 (diff)
downloadfork-ledger-96223f9e2032e359c08218861f636e4f97edf2cd.tar.gz
fork-ledger-96223f9e2032e359c08218861f636e4f97edf2cd.tar.bz2
fork-ledger-96223f9e2032e359c08218861f636e4f97edf2cd.zip
Add ISO 8601 date as recognized date string
Dates specified via --begin and --end are converted to a value expression using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by ledger. Bug fix for #1072
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/times.cc b/src/times.cc
index 45734bdc..15009dc5 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -1812,6 +1812,7 @@ void times_initialize()
readers.push_back(shared_ptr<date_io_t>(new date_io_t("%Y/%m/%d", true)));
readers.push_back(shared_ptr<date_io_t>(new date_io_t("%Y/%m", true)));
readers.push_back(shared_ptr<date_io_t>(new date_io_t("%y/%m/%d", true)));
+ readers.push_back(shared_ptr<date_io_t>(new date_io_t("%Y-%m-%d", true)));
is_initialized = true;
}