diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-13 00:39:13 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-13 00:50:01 +0900 |
commit | 8ff8b5532cb55913d2076b7a7514b1cb83cae40c (patch) | |
tree | 9d49b226991cecadc63316c4dd393adcd93d4e3f /sphinx | |
parent | d5559e1ba2d6ea5648a57301067a7461c268460e (diff) | |
download | sphinx-git-8ff8b5532cb55913d2076b7a7514b1cb83cae40c.tar.gz |
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')
-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). '%%': '%', |