diff options
Diffstat (limited to 'walk.h')
-rw-r--r-- | walk.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } }; |