Skip to content

Commit

Permalink
Set Timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Nov 13, 2024
1 parent 80e0116 commit fae7b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brewtils/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def to_epoch(value):
def from_epoch(value):
# If already in datetime form just return it
if isinstance(value, datetime.datetime):
return value
return value.replace(tzinfo=datetime.timezone.utc)

return utils.from_timestamp_ms(value)
return utils.from_timestamp_ms(value).replace(tzinfo=datetime.timezone.utc)


class BaseSchema(Schema):
Expand Down

0 comments on commit fae7b8c

Please sign in to comment.