summaryrefslogtreecommitdiff
path: root/src/timelog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/timelog.cc')
-rw-r--r--src/timelog.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timelog.cc b/src/timelog.cc
index 96b629c8..d52bccb0 100644
--- a/src/timelog.cc
+++ b/src/timelog.cc
@@ -86,7 +86,7 @@ namespace {
("Timelog check-out date less than corresponding check-in");
char buf[32];
- std::sprintf(buf, "%lds", long((when - event.checkin).seconds()));
+ std::sprintf(buf, "%lds", long((when - event.checkin).total_seconds()));
amount_t amt;
amt.parse(buf);
assert(amt.valid());