summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-22 17:19:35 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-22 17:19:35 -0400
commit26a94fb1edef67bba7651f388ed25f29f1e6c38a (patch)
treebca51279dd245a6e18028f0b7307ffe101cd868a /src/times.h
parent3f899c93e655945a775eecfe81d49fff8befba11 (diff)
downloadfork-ledger-26a94fb1edef67bba7651f388ed25f29f1e6c38a.tar.gz
fork-ledger-26a94fb1edef67bba7651f388ed25f29f1e6c38a.tar.bz2
fork-ledger-26a94fb1edef67bba7651f388ed25f29f1e6c38a.zip
The notions of "now" and "today" now use local time
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h6
1 files changed, 3 insertions, 3 deletions
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<datetime_t> 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;