diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-12 18:39:13 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-12 18:50:01 +0300 |
commit | 8ff8b5532cb55913d2076b7a7514b1cb83cae40c (patch) | |
tree | 9d49b226991cecadc63316c4dd393adcd93d4e3f /sphinx/util | |
parent | d5559e1ba2d6ea5648a57301067a7461c268460e (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.py | 2 |
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). '%%': '%', |