From 748a6008b3ea7ac0c2ddf69bbcbea20d9d04ffec Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Feb 2009 13:18:37 -0400 Subject: When clocking out, call total_seconds() --- src/timelog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timelog.cc') 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()); -- cgit v1.2.3