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/generate.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/generate.cc')
-rw-r--r-- | src/generate.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generate.cc b/src/generate.cc index 8796f0bf..ebbc3cd7 100644 --- a/src/generate.cc +++ b/src/generate.cc @@ -321,11 +321,11 @@ void generate_posts_iterator::generate_note(std::ostream& out) void generate_posts_iterator::generate_xact(std::ostream& out) { - out << format_date(next_date, string("%Y/%m/%d")); + out << format_date(next_date, FMT_WRITTEN); next_date += gregorian::days(six_gen()); if (truth_gen()) { out << '='; - out << format_date(next_eff_date, string("%Y/%m/%d")); + out << format_date(next_eff_date, FMT_WRITTEN); next_eff_date += gregorian::days(six_gen()); } out << ' '; |