Skip to content

Commit

Permalink
fix autobump timezone (#36556)
Browse files Browse the repository at this point in the history
  • Loading branch information
israelpoli authored Sep 30, 2024
1 parent caee42b commit ad2f54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/github_workflow_scripts/skip_conditions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import ABC, abstractmethod
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone
from enum import Enum
from pathlib import Path
from demisto_sdk.commands.common.tools import get_pack_names_from_files
Expand Down Expand Up @@ -261,7 +261,7 @@ def _check(
Returns(ConditionResult): whether the condition check pass,
or we should skip this pr from auto-bumping its release notes, with the reason why to skip.
"""
if self.pr.updated_at and self.pr.updated_at < datetime.now() - timedelta(
if self.pr.updated_at and self.pr.updated_at < datetime.now(timezone.utc) - timedelta(
days=self.LAST_SUITABLE_UPDATE_TIME_DAYS
):
return ConditionResult(
Expand Down

0 comments on commit ad2f54b

Please sign in to comment.