diff options
author | John Wiegley <johnw@newartisans.com> | 2005-05-27 00:38:39 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:09 -0400 |
commit | 577767ea58d9781c4d90e27db32e41143f5e387e (patch) | |
tree | 9c00e85d2d22dbec6694b7531d71a3edc1efb524 /config.cc | |
parent | 357abd0f6e406ff145d3eea71a67a1fe98872269 (diff) | |
download | fork-ledger-577767ea58d9781c4d90e27db32e41143f5e387e.tar.gz fork-ledger-577767ea58d9781c4d90e27db32e41143f5e387e.tar.bz2 fork-ledger-577767ea58d9781c4d90e27db32e41143f5e387e.zip |
Use std::localtime instead of std::gmtime.
Diffstat (limited to 'config.cc')
-rw-r--r-- | config.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -783,11 +783,11 @@ OPT_BEGIN(period, "p:") { char buf[32]; interval_t interval(config.report_period); if (interval.begin) { - std::strftime(buf, 31, "%Y/%m/%d", std::gmtime(&interval.begin)); + std::strftime(buf, 31, "%Y/%m/%d", std::localtime(&interval.begin)); process_option(config_options, "begin", buf); } if (interval.end) { - std::strftime(buf, 31, "%Y/%m/%d", std::gmtime(&interval.end)); + std::strftime(buf, 31, "%Y/%m/%d", std::localtime(&interval.end)); process_option(config_options, "end", buf); } } OPT_END(period); |