Skip to content

Commit

Permalink
fix datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Nov 4, 2024
1 parent e695d8e commit 05d515c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ async def is_service_deprecated(
app, user_id, service_key, service_version, product_name
)
if deprecation_date := service.get("deprecated"):
deprecation_date_bool: bool = datetime.datetime.utcnow() > datetime.datetime.fromisoformat(deprecation_date)
deprecation_date_bool: bool = datetime.datetime.now(datetime.UTC) > datetime.datetime.fromisoformat(deprecation_date)

return deprecation_date_bool
return False
Expand Down

0 comments on commit 05d515c

Please sign in to comment.