diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-20 13:18:37 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-20 13:18:37 -0400 |
commit | 748a6008b3ea7ac0c2ddf69bbcbea20d9d04ffec (patch) | |
tree | aa2e6690724bfc5d345e1ea409e7a7a39acc4bb5 /src/timelog.cc | |
parent | c1b25fcf8629eca326fe6dd586e4896eeb5f2d45 (diff) | |
download | fork-ledger-748a6008b3ea7ac0c2ddf69bbcbea20d9d04ffec.tar.gz fork-ledger-748a6008b3ea7ac0c2ddf69bbcbea20d9d04ffec.tar.bz2 fork-ledger-748a6008b3ea7ac0c2ddf69bbcbea20d9d04ffec.zip |
When clocking out, call total_seconds()
Diffstat (limited to 'src/timelog.cc')
-rw-r--r-- | src/timelog.cc | 2 |
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()); |