Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion time_tracker_api/time_entries/time_entries_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def find_running(self):
time_entry = self.repository.find_running(
event_ctx.tenant_id, event_ctx.user_id
)
self.stop_time_entry_if_was_left_running(time_entry)
# self.stop_time_entry_if_was_left_running(time_entry)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add little TODO here to add some context to this comment. Something like "Refactor automatic clock-out to consider local timezones". By using the word "refactor" I intend to include the intention to either remove the whole logic around this or extend it taking into account local timezones.

return time_entry

def get_worked_time(self, conditions: dict = {}):
Expand Down