Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-12 18:39:13 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-12 18:50:01 +0300
commit8ff8b5532cb55913d2076b7a7514b1cb83cae40c (patch)
tree9d49b226991cecadc63316c4dd393adcd93d4e3f /sphinx/util
parentd5559e1ba2d6ea5648a57301067a7461c268460e (diff)
Fix #8683: html_last_updated_fmt generates wrong time zone for %Z
sphinx.util.i18n:format_date() converts '%Z' to full name of time zone unexpectedly. It should be converted to short name.
Diffstat (limited to 'sphinx/util')
-rw-r--r--sphinx/util/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/i18n.py b/sphinx/util/i18n.py
index 05d476ddd..6ea004bb0 100644
--- a/sphinx/util/i18n.py
+++ b/sphinx/util/i18n.py
@@ -236,7 +236,7 @@ date_format_mappings = {
'%X': 'medium', # Locale’s appropriate time representation.
'%y': 'YY', # Year without century as a zero-padded decimal number.
'%Y': 'yyyy', # Year with century as a decimal number.
- '%Z': 'zzzz', # Time zone name (no characters if no time zone exists).
+ '%Z': 'zzz', # Time zone name (no characters if no time zone exists).
'%z': 'ZZZ', # UTC offset in the form ±HHMM[SS[.ffffff]]
# (empty string if the object is naive).
'%%': '%',