Skip to content

Commit

Permalink
edit: fix time format to %H:%M:%S.
Browse files Browse the repository at this point in the history
  • Loading branch information
niccolozanotti committed Sep 9, 2024
1 parent cb16186 commit 49e0dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def status():

def log_action(name, action):
now = datetime.now(timezone.utc)
log_entry = [now.date().isoformat(), now.strftime('%H:%M'), name, action]
log_entry = [now.date().isoformat(), now.strftime('%H:%M:%S'), name, action] # Format time to HH:MM:SS
append_log_to_s3(log_entry)


Expand Down Expand Up @@ -102,7 +102,7 @@ def get_last_update_time():
last_row = row # Keep track of the last row

if last_row:
time_str = last_row[1] # Now we only store the time in the second column
time_str = last_row[1] # Retrieve the formatted time
return time_str

except s3.exceptions.NoSuchKey:
Expand Down

0 comments on commit 49e0dee

Please sign in to comment.