Fortran-FOSS-Programmers / ford

Automatically generates FORtran Documentation from comments within the code.
https://forddocs.readthedocs.io
GNU General Public License v3.0
410 stars 134 forks source link

make creation_date timezone-aware #664

Closed amorison closed 1 month ago

amorison commented 1 month ago

datetime.now() returns a naive timestamp in the local TZ. When formatting this timestamp, %z and %Z directives would therefore always be empty.

This commit calls .astimezone() to attach the system TZ to this timestamp. %z and %Z directives when formatting the timestamp are now respected.