summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.cc b/format.cc
index 007233e3..70683e48 100644
--- a/format.cc
+++ b/format.cc
@@ -476,12 +476,12 @@ void format_t::format(std::ostream& out_str, scope_t& scope) const
break;
case element_t::DATE_STRING:
- out << format_datetime(scope.resolve("date").as_datetime());
+ out << format_date(scope.resolve("date").as_date());
break;
case element_t::COMPLETE_DATE_STRING: {
- datetime_t actual_date;
- datetime_t effective_date;
+ date_t actual_date;
+ date_t effective_date;
if (details.xact) {
actual_date = details.xact->actual_date();
effective_date = details.xact->effective_date();