Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 7974:4dcc64d0138e
doc: classhelper translation, advanced config w/ roles endpoint
Added info on how to translate default title and data-popup-title.
Also added advanced config section on deploying a new roles rest
endpoint and changing classhelper to use it.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 21 May 2024 20:03:56 -0400 |
| parents | d5d7ecd31864 |
| children |
line wrap: on
line source
# https://issues.roundup-tracker.org/issue2551278 # datetime.utcnow deprecated try: from datetime import UTC, datetime def utcnow(): return datetime.now(UTC) except ImportError: from datetime import datetime def utcnow(): return datetime.utcnow()
