http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/anypy/datetime_.py Mercurial Repository: p/roundup/code: roundup/anypy/datetime_.py history 2024-03-02T04:10:40-05:00 chore: sort imports w/ ruff. http://hg.code.sf.net:8000/p/roundup/code/#changeset-d5d7ecd31864f01364db75f8dbfb5ceab536acd8 John Rouillard rouilj@ieee.org 2024-03-02T04:10:40-05:00 2024-03-02T04:10:40-05:00
changeset d5d7ecd31864
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: sort imports w/ ruff.
files
fix: issue2551278 - datetime.datetime.utcnow deprecation. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6894f152d49a6f128b75ac030101dee235a64c78 John Rouillard rouilj@ieee.org 2023-07-26T23:59:35-04:00 2023-07-26T23:59:35-04:00
changeset 6894f152d49a
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: issue2551278 - datetime.datetime.utcnow deprecation.

Original fix always failed the import and fell back to the exception case.
This method should work and test both code paths in datetime_.py.
files
fix: issue2551278 - datetime.datetime.utcnow deprecation. http://hg.code.sf.net:8000/p/roundup/code/#changeset-8f29e4ea05ce7ac8e19f5a1e93856878b5e1fd21 John Rouillard rouilj@ieee.org 2023-07-25T16:30:10-04:00 2023-07-25T16:30:10-04:00
changeset 8f29e4ea05ce
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: issue2551278 - datetime.datetime.utcnow deprecation.

Replace calls with equivalent that produces timezone aware dates
rather than naive dates.

Also some flake8 fixes for test/rest_common.py.
files