summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-13 02:09:19 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-13 02:09:19 -0400
commit60019dc4b426a632688fd9eb9fa1ae970fadc432 (patch)
tree43aa3e5d12d04e9178e2a1933a04523d27f9c0ca
parentf6b93a3f5a29c5262fb812fb03676124b355f013 (diff)
downloadledger-60019dc4b426a632688fd9eb9fa1ae970fadc432.tar.gz
ledger-60019dc4b426a632688fd9eb9fa1ae970fadc432.tar.bz2
ledger-60019dc4b426a632688fd9eb9fa1ae970fadc432.zip
Changed print report to use format_date
Otherwise, Ledger was unable to parse what it had printed.
-rw-r--r--src/report.cc3
1 files changed, 2 insertions, 1 deletions
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)"