From 26a94fb1edef67bba7651f388ed25f29f1e6c38a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 22 Jun 2010 17:19:35 -0400 Subject: The notions of "now" and "today" now use local time --- src/times.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/times.h') diff --git a/src/times.h b/src/times.h index ac96669d..1ff08739 100644 --- a/src/times.h +++ b/src/times.h @@ -68,14 +68,14 @@ inline bool is_valid(const date_t& moment) { extern optional epoch; #ifdef BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK -#define TRUE_CURRENT_TIME() (boost::posix_time::microsec_clock::universal_time()) +#define TRUE_CURRENT_TIME() (boost::posix_time::microsec_clock::local_time()) #define CURRENT_TIME() (epoch ? *epoch : TRUE_CURRENT_TIME()) #else -#define TRUE_CURRENT_TIME() (boost::posix_time::second_clock::universal_time()) +#define TRUE_CURRENT_TIME() (boost::posix_time::second_clock::local_time()) #define CURRENT_TIME() (epoch ? *epoch : TRUE_CURRENT_TIME()) #endif #define CURRENT_DATE() \ - (epoch ? epoch->date() : boost::gregorian::day_clock::universal_day()) + (epoch ? epoch->date() : boost::gregorian::day_clock::local_day()) extern date_time::weekdays start_of_week; -- cgit v1.2.3