Roundup Tracker - Issues

Issue 2551278

classification
datetime.datetime.utcnow deprecation
Type: Severity: normal
Components: Web interface, Mail interface, Command-line interface Versions:
process
Status: new
:
: : rouilj
Priority: : Blocker, Deprecation

Created on 2023-05-25 23:35 by rouilj, last changed 2023-05-25 23:35 by rouilj.

Messages
msg7775 Author: [hidden] (rouilj) Date: 2023-05-25 23:35
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
History
Date User Action Args
2023-05-25 23:35:34rouiljcreate