Skip to content

Replace all utcnow with just now - #1302

Open
ajax146 wants to merge 7 commits into
mainfrom
FixDeprecatedUTCNOW
Open

Replace all utcnow with just now#1302
ajax146 wants to merge 7 commits into
mainfrom
FixDeprecatedUTCNOW

Conversation

@ajax146

@ajax146ajax146 commented May 2, 2025

Copy link
Copy Markdown
Contributor

This aims to resolve the deprecation issue with .utcnow(), and solves the bot showing the wrong times on embeds if its run not in the UTC timezone.
I believe this doesn't break anything but will need testing to be sure.

Fixes#1296

@ajax146
ajax146 requested review from a team, Lunaberries and TheKrol and removed request for a teamMay 2, 2025 18:46
@ajax146ajax146 added Waiting for Review PR: Want for next release This PR should be merged prior to the next release labels May 2, 2025

@dkay0670dkay0670 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

modmail thread title and database modified dates should stay utc (make it now(datetime.UTC))

@ajax146ajax146 added run-ci and removed run-ci labels May 17, 2025
@ajax146ajax146 removed the PR: Want for next release This PR should be merged prior to the next release label Jun 9, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When running bare metal on windows, time stamps for event logs are in the future

3 participants

@ajax146@TheKrol@dkay0670