When clocking out, call total_seconds()
This commit is contained in:
parent
c1b25fcf86
commit
748a6008b3
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ namespace {
|
||||||
("Timelog check-out date less than corresponding check-in");
|
("Timelog check-out date less than corresponding check-in");
|
||||||
|
|
||||||
char buf[32];
|
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;
|
amount_t amt;
|
||||||
amt.parse(buf);
|
amt.parse(buf);
|
||||||
assert(amt.valid());
|
assert(amt.valid());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue