From 96223f9e2032e359c08218861f636e4f97edf2cd Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Thu, 2 Oct 2014 18:33:26 -0400 Subject: 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 --- src/times.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/times.cc') 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(new date_io_t("%Y/%m/%d", true))); readers.push_back(shared_ptr(new date_io_t("%Y/%m", true))); readers.push_back(shared_ptr(new date_io_t("%y/%m/%d", true))); + readers.push_back(shared_ptr(new date_io_t("%Y-%m-%d", true))); is_initialized = true; } -- cgit v1.2.3