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. --- xml.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xml.cc') diff --git a/xml.cc b/xml.cc index c65fa190..ebafd65b 100644 --- a/xml.cc +++ b/xml.cc @@ -70,10 +70,10 @@ static void endElement(void *userData, const char *name) curr_entry = NULL; } else if (std::strcmp(name, "en:date") == 0) { - curr_entry->_date = parse_datetime(data); + curr_entry->_date = parse_date(data); } else if (std::strcmp(name, "en:date_eff") == 0) { - curr_entry->_date_eff = parse_datetime(data); + curr_entry->_date_eff = parse_date(data); } else if (std::strcmp(name, "en:code") == 0) { curr_entry->code = data; -- cgit v1.2.3