summaryrefslogtreecommitdiff
path: root/xmlparse.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-19 00:00:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:17 -0400
commit086ea40d9993f2ac86941a0462dabbd7f18d58f3 (patch)
tree9b905b976c620382f9cc048655254dc23588e365 /xmlparse.cc
parentba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (diff)
downloadledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.gz
ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.bz2
ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.zip
We now compile with boost_date_time (although parts of the code have
been stubbed out as a result).
Diffstat (limited to 'xmlparse.cc')
-rw-r--r--xmlparse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlparse.cc b/xmlparse.cc
index 62d7ee03..18158194 100644
--- a/xmlparse.cc
+++ b/xmlparse.cc
@@ -79,10 +79,10 @@ static void endElement(void *userData, const char *name)
curr_entry = NULL;
}
else if (std::strcmp(name, "en:date") == 0) {
- curr_entry->_date = data;
+ curr_entry->_date = ptime_from_local_date_string(data);
}
else if (std::strcmp(name, "en:date_eff") == 0) {
- curr_entry->_date_eff = data;
+ curr_entry->_date_eff = ptime_from_local_date_string(data);
}
else if (std::strcmp(name, "en:code") == 0) {
curr_entry->code = data;