From ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 18 Apr 2007 23:50:25 +0000 Subject: Initial round of changes to use boost_date_time --- journal.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'journal.cc') diff --git a/journal.cc b/journal.cc index a64b005e..eaf3de35 100644 --- a/journal.cc +++ b/journal.cc @@ -1,5 +1,4 @@ #include "journal.h" -#include "datetime.h" #include "mask.h" #include "format.h" #if 0 @@ -23,14 +22,14 @@ transaction_t::~transaction_t() if (cost) delete cost; } -datetime_t transaction_t::actual_date() const +ptime transaction_t::actual_date() const { if (! _date && entry) return entry->actual_date(); return _date; } -datetime_t transaction_t::effective_date() const +ptime transaction_t::effective_date() const { if (! _date_eff && entry) return entry->effective_date(); @@ -182,7 +181,7 @@ bool entry_base_t::finalize() ! (*x)->amount.commodity().annotated) (*x)->amount.annotate_commodity (abs(per_unit_cost), - entry ? entry->actual_date() : datetime_t(), + entry ? entry->actual_date() : ptime(), entry ? entry->code : ""); (*x)->cost = new amount_t(- (per_unit_cost * (*x)->amount)); -- cgit v1.2.3