Skip to content

Commit

Permalink
fix(app): update timezone from UTC+2 to UTC+1.
Browse files Browse the repository at this point in the history
  • Loading branch information
niccolozanotti authored Oct 28, 2024
1 parent 88ddece commit 4dc7f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def status():
def log_action(name, action):
# Get current time in UTC
now_utc = datetime.now(timezone.utc)
# Convert to UTC+2 by adding 2 hours
now_utc_plus_2 = now_utc + timedelta(hours=2)
# Convert to UTC+1 by adding 1 hours
now_utc_plus_1 = now_utc + timedelta(hours=1)
# Format time to HH:MM:SS
log_entry = [now_utc_plus_2.date().isoformat(), now_utc_plus_2.strftime('%H:%M:%S'), name, action]
log_entry = [now_utc_plus_1.date().isoformat(), now_utc_plus_1.strftime('%H:%M:%S'), name, action]
append_log_to_s3(log_entry)


Expand Down

0 comments on commit 4dc7f7e

Please sign in to comment.