Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 7604:d117ddcb0ed1
Update dockerfile build: new python base image, reduce disk space use
Use newest python:3-alpine.
Remove sphinxcontrib libraries and xapian docs that were left around
from the build saving 2M.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 15 Aug 2023 00:29:24 -0400 |
| parents | 6894f152d49a |
| children | d5d7ecd31864 |
line wrap: on
line source
# https://issues.roundup-tracker.org/issue2551278 # datetime.utcnow deprecated try: from datetime import datetime, UTC def utcnow(): return datetime.now(UTC) except ImportError: from datetime import datetime def utcnow(): return datetime.utcnow()
