When clocking out, call total_seconds()

This commit is contained in:
John Wiegley 2009-02-20 13:18:37 -04:00
parent c1b25fcf86
commit 748a6008b3

View file

@ -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());