Skip to content

fix(member): give up deprecated datetime.utcnow#3259

Merged
Paillat-dev merged 10 commits into
Pycord-Development:masterfrom
vmphase:fix/deprecated-datetime-usage
Jun 10, 2026
Merged

fix(member): give up deprecated datetime.utcnow#3259
Paillat-dev merged 10 commits into
Pycord-Development:masterfrom
vmphase:fix/deprecated-datetime-usage

Conversation

@vmphase

@vmphase vmphase commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace deprecated datetime.datetime.utcnow() and/or manual datetime.datetime.now(datetime.timezone.utc) usage with utils.utcnow() in discord/members.py.

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.
  • AI Usage has been disclosed.
    • If AI has been used, I understand fully what the code does

@vmphase vmphase requested review from a team and Paillat-dev June 10, 2026 14:53
@vmphase vmphase requested a review from plun1331 June 10, 2026 14:53
@github-project-automation github-project-automation Bot moved this to Todo in Pycord Jun 10, 2026
@vmphase vmphase requested review from a team as code owners June 10, 2026 14:53
@vmphase vmphase requested review from Icebluewolf and ToothyDev June 10, 2026 14:53
@pycord-app

pycord-app Bot commented Jun 10, 2026

Copy link
Copy Markdown

Thanks for opening this pull request!
Please make sure you have read the Contributing Guidelines and Code of Conduct.

This pull request can be checked-out with:

git fetch origin pull/3259/head:pr-3259
git checkout pr-3259

This pull request can be installed with:

pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3259/head

@Paillat-dev

Copy link
Copy Markdown
Member

We have utils.utcnow (iirc)

@vmphase

vmphase commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

We have utils.utcnow (iirc)

Missed that originally; updated now.

@Paillat-dev Paillat-dev added this to the 2.8.1 milestone Jun 10, 2026
@Paillat-dev Paillat-dev merged commit eba89a4 into Pycord-Development:master Jun 10, 2026
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants