From 577767ea58d9781c4d90e27db32e41143f5e387e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 27 May 2005 00:38:39 +0000 Subject: Use std::localtime instead of std::gmtime. --- config.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.cc') diff --git a/config.cc b/config.cc index d0a92fbb..1e9dd73c 100644 --- a/config.cc +++ b/config.cc @@ -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); -- cgit v1.2.3