Closed dominikbraun closed 3 years ago
Fixes #4. With this PR, the tracked time displayed with timetrace status is only calculcated using time.Now() if it hasn't ended.
timetrace status
time.Now()
Also, if time isn't tracked at the moment of calling timetrace status, the returned current record and its tracked time will be nil:
nil
https://github.com/dominikbraun/timetrace/blob/265180e40cd1cdb47871d568e70bf666b3090cfd/core/timetrace.go#L100-L110
Fixes #4. With this PR, the tracked time displayed with
timetrace status
is only calculcated usingtime.Now()
if it hasn't ended.