[issue2551278] datetime.datetime.utcnow deprecation

John Rouillard <[email protected]> Thu, 25 May 2023 23:35:34 +0000
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

3.12 test is throwing the following warnings:

 /home/runner/work/roundup/roundup/roundup/date.py:379: DeprecationWarning: datetime.utcnow() 
is deprecated and scheduled for removal in a future version. Use timezone-aware objects to 
represent datetimes in UTC: datetime.now(datetime.UTC).

probably need a roundup/anypy/datetime_.py that exports a utcnow() function and then
and import and replace datetime.datetime.utcnow() to utcnow() in:

 date.py, rate_limit.py, test/rest_common.py

source:

https://github.com/roundup-tracker/roundup/actions/runs/5085234225/jobs/9138474935

----------
components: Command-line interface, Mail interface, Web interface
keywords: Blocker, Deprecation
messages: 7775
nosy: rouilj
severity: normal
status: new
title: datetime.datetime.utcnow deprecation

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551278>
_________________________________________________