diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 04:37:11 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 05:01:47 -0400 |
commit | fc84eeb358f13b7c2b2668917692da26af001901 (patch) | |
tree | cfc4540c1b7805a17425675c1143d7a2d748b42f /src/filters.cc | |
parent | 588f2ef2f51d7bdf209820bfb244034863601939 (diff) | |
download | fork-ledger-fc84eeb358f13b7c2b2668917692da26af001901.tar.gz fork-ledger-fc84eeb358f13b7c2b2668917692da26af001901.tar.bz2 fork-ledger-fc84eeb358f13b7c2b2668917692da26af001901.zip |
Rewrote the way date and time I/O is managed
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/filters.cc b/src/filters.cc index 967e0843..5b087eea 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -531,15 +531,14 @@ void subtotal_posts::report_subtotal(const char * spec_fmt, std::ostringstream out_date; if (spec_fmt) { - out_date << format_date(*range_finish, string(spec_fmt)); + out_date << format_date(*range_finish, FMT_CUSTOM, spec_fmt); } else if (date_format) { - string fmt = "- "; - fmt += *date_format; - out_date << format_date(*range_finish, string(fmt)); + out_date << "- " << format_date(*range_finish, FMT_CUSTOM, + date_format->c_str()); } else { - out_date << format_date(*range_finish, std::string("- ") + output_date_format); + out_date << "- " << format_date(*range_finish); } xact_temps.push_back(xact_t()); |