Merge pull request #6407 from tk0miya/6406_wrong_year

Fix #6406: Wrong year is returned for ``SOURCE_DATE_EPOCH``
This commit is contained in:
Takeshi KOMIYA authored and GitHub committed 2019-05-29 00:48:34 +09:00
commit 804d5d804a
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -125,6 +125,7 @@ Bugs fixed
* #6375: extlinks: Cannot escape angle brackets in link caption
* #6378: linkcheck: Send commonly used User-Agent
* #6387: html search: failed to search document with haiku and scrolls themes
* #6406: Wrong year is returned for ``SOURCE_DATE_EPOCH``
Testing
--------
+1 -1
View File
@@ -248,7 +248,7 @@ date_format_mappings = {
'%x': 'medium', # Locale’s appropriate date representation.
'%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.
'%Y': 'yyyy', # Year with century as a decimal number.
'%Z': 'zzzz', # Time zone name (no characters if no time zone exists).
'%%': '%',
}