From 858978de8931ce5c98882472b10051f4e57dd029 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 1 Aug 2008 17:37:22 -0400 Subject: Journal data structures now use date_t instead of datetime_t. This means transactions can only have day-level granularity -- which has always been the case from an data file point of view. The advantage to this restriction is that reports will now be immune from daylight savings related bugs, where a transaction falls to the wrong side of a --monthly report, for example. --- xact.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xact.cc') diff --git a/xact.cc b/xact.cc index d0360f7f..29c5e63d 100644 --- a/xact.cc +++ b/xact.cc @@ -42,14 +42,14 @@ xact_t::~xact_t() TRACE_DTOR(xact_t); } -datetime_t xact_t::actual_date() const +date_t xact_t::actual_date() const { if (! _date && entry) return entry->actual_date(); return *_date; } -datetime_t xact_t::effective_date() const +date_t xact_t::effective_date() const { if (! _date_eff && entry) return entry->effective_date(); -- cgit v1.2.3