Edge case: manual duration of 1 day counts as "session in progress" #58
Notifications
Total Time Spent: 20 minutes
Due Date
lukas
20 minutes
No due date set.
Dependencies
No dependencies set.
Reference: lukas/timetracker#58
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To determine whether a session is considered unfinished (in progress), we check if its
timestamp_end
is null and if seconds ofduration_manual
is 01. However, theDurationField
in Django doesn't report total number of seconds, it only reports a remainder that doesn't fit neatly into one of the higher units. Thus when there is an exact amount of 24 hours, it equals 1 day and seconds are set to 0.