Skip to content

Conversation

@LeMyst
Copy link
Owner

@LeMyst LeMyst commented Feb 1, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 2, 2025 11:23

This comment was marked as outdated.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates deprecated datetime.utcnow() calls to use the modern datetime.now(datetime.timezone.utc) approach. The utcnow() method has been deprecated in Python 3.12+ in favor of timezone-aware alternatives.

  • Replaces datetime.utcnow() with datetime.now(datetime.timezone.utc) in logging statements
  • Updates time value generation in the Time datatype to use the modern datetime approach

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
wikibaseintegrator/wbi_helpers.py Updates two logging statements in rate limiting and maxlag error handling to use modern UTC datetime
wikibaseintegrator/datatypes/time.py Updates "now" time value generation to use timezone-aware UTC datetime

@LeMyst LeMyst merged commit d7ced55 into master Sep 2, 2025
15 of 21 checks passed
@LeMyst LeMyst deleted the replace-utcnow branch September 2, 2025 18:22
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.

2 participants