Skip to content

Commit

Permalink
timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK committed Sep 19, 2024
1 parent ba2b90b commit 0c1f681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def datetime_from_isoformat(value):
value = value[:tz_colon_index] + value[tz_colon_index + 1 :]
timestamp_format += "%z"

return datetime.strptime(value, timestamp_format)
return datetime.strptime(value, timestamp_format).astimezone(timezone.utc)


def event_hint_with_exc_info(exc_info=None):
Expand Down

0 comments on commit 0c1f681

Please sign in to comment.