From 60019dc4b426a632688fd9eb9fa1ae970fadc432 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 13 Feb 2009 02:09:19 -0400 Subject: [PATCH] Changed print report to use format_date Otherwise, Ledger was unable to parse what it had printed. --- src/report.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/report.cc b/src/report.cc index e1497dac..a4076d9f 100644 --- a/src/report.cc +++ b/src/report.cc @@ -60,7 +60,8 @@ report_t::report_t(session_t& _session) "%48|%-.38A %22.108t %!22.132T\n"); HANDLER(print_format_).on( - "%(entry.date)%(entry.cleared ? \" *\" : (entry.pending ? \" !\" : \"\"))" + "%(format_date(entry.date, \"%Y/%m/%d\"))" + "%(entry.cleared ? \" *\" : (entry.pending ? \" !\" : \"\"))" "%(code ? \" (\" + code + \")\" : \"\") %(payee)%(entry.comment | \"\")\n" " %(entry.uncleared ? (cleared ? \"* \" : (pending ? \"! \" : \"\")) : \"\")" "%-34(account)"