diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-18 02:15:31 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-18 02:15:31 -0400 |
commit | 8af33274fbb9cf0c9a4a452b77825ab6e519cf8d (patch) | |
tree | 20cade7c1ab8986db969a17e823168829b97c3f7 /walk.cc | |
parent | 9d1bdd0989996318825a458e01b7b0eb5f48397f (diff) | |
download | fork-ledger-8af33274fbb9cf0c9a4a452b77825ab6e519cf8d.tar.gz fork-ledger-8af33274fbb9cf0c9a4a452b77825ab6e519cf8d.tar.bz2 fork-ledger-8af33274fbb9cf0c9a4a452b77825ab6e519cf8d.zip |
more time interval support: last month, last feb, next year, etc.
Diffstat (limited to 'walk.cc')
-rw-r--r-- | walk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -132,9 +132,9 @@ void subtotal_transactions::flush(const char * spec_fmt) if (start != finish) finish -= 86400; - std::strftime(buf, 255, fmt.c_str(), std::gmtime(&finish)); + std::strftime(buf, 255, fmt.c_str(), std::localtime(&finish)); } else { - std::strftime(buf, 255, spec_fmt, std::gmtime(&finish)); + std::strftime(buf, 255, spec_fmt, std::localtime(&finish)); } entry_t * entry = new entry_t; @@ -199,7 +199,7 @@ void interval_transactions::operator()(transaction_t * xact) } if (! interval.seconds) { - struct std::tm * desc = std::gmtime(&xact->entry->date); + struct std::tm * desc = std::localtime(&xact->entry->date); if (interval.years) desc->tm_mon = 0; desc->tm_mday = 1; |