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. --- derive.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'derive.cc') diff --git a/derive.cc b/derive.cc index 03b05619..49cddda3 100644 --- a/derive.cc +++ b/derive.cc @@ -14,9 +14,7 @@ entry_t * derive_new_entry(report_t& report, entry_t * matching = NULL; - // jww (2008-04-20): Need to parse the string here - //added->_date = *i++; - added->_date = boost::posix_time::time_from_string(*i++); + added->_date = parse_date(*i++); if (i == end) throw std::runtime_error("Too few arguments to 'entry'"); -- cgit v1.2.3