Skip to content

Commit

Permalink
Merge pull request #713 from camptocamp/fix-date
Browse files Browse the repository at this point in the history
Fix date timezone
  • Loading branch information
sbrunner authored Feb 24, 2025
2 parents 950ed7c + 1f97874 commit 3f91e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_app_geo_project/module/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ def manage_updated(status: dict[str, Any], key: str, days_old: int = 2) -> None:
if (
not isinstance(other_object, dict)
or "updated" not in other_object
or datetime.datetime.fromisoformat(other_object["updated"])
or datetime.datetime.fromisoformat(other_object["updated"]).replace(tzinfo=datetime.UTC)
< datetime.datetime.now(datetime.UTC) - datetime.timedelta(days=days_old)
):
_LOGGER.debug(
Expand Down

0 comments on commit 3f91e59

Please sign in to comment.