Skip to content

Resolve datetime deprecation warnings#319

Merged
Jordi Soucheiron (jsoucheiron) merged 1 commit intoSkyscanner:masterfrom
emmanuel-ferdman:master
Apr 28, 2025
Merged

Resolve datetime deprecation warnings#319
Jordi Soucheiron (jsoucheiron) merged 1 commit intoSkyscanner:masterfrom
emmanuel-ferdman:master

Conversation

@emmanuel-ferdman
Copy link
Contributor

Description

This small PR resolves the datetime deprecation warnings which you can see in the CI logs:

/home/runner/work/cfripper/cfripper/cfripper/boto3_client.py:25: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    now = datetime.utcnow().isoformat().replace(":", ".")

Checklist

  • I have updated the CHANGELOG.md file accordingly

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. We'll release it shortly

@jsoucheiron Jordi Soucheiron (jsoucheiron) merged commit 8c855ce into Skyscanner:master Apr 28, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants