summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/walk.h b/walk.h
index b59195b3..9a37d456 100644
--- a/walk.h
+++ b/walk.h
@@ -500,7 +500,8 @@ class dow_transactions : public subtotal_transactions
virtual void flush();
virtual void operator()(transaction_t& xact) {
- struct std::tm * desc = std::localtime(&xact.entry->date);
+ std::time_t when = xact.date();
+ struct std::tm * desc = std::localtime(&when);
days_of_the_week[desc->tm_wday].push_back(&xact);
}
};