Skip to content

Commit e87021b

Browse files
ngzhianMs2ger
authored andcommitted
Fix html_last_updated_fmt
'%F' is not a supported format, see https://github.com/sphinx-doc/sphinx/blob/4.x/sphinx/util/i18n.py#L133, it is also not supported in Python's strftime/strptime https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior. It is however supported in strftime (https://man7.org/linux/man-pages/man3/strftime.3.html) and defined to be "%Y-%m-%d", which is supported by sphinx.
1 parent 3ae76b1 commit e87021b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

document/core/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
# If this is not None, a ‘Last updated on:’ timestamp is inserted at every
253253
# page bottom, using the given strftime() format.
254254
#
255-
html_last_updated_fmt = '%F'
255+
html_last_updated_fmt = '%Y-%m-%d'
256256

257257
# If true, an OpenSearch description file will be output, and all pages will
258258
# contain a <link> tag referring to it. The value of this option must be the

0 commit comments

Comments
 (0)