Skip to content

Commit

Permalink
Fix sphinx-doc#6406: Wrong year is returned for SOURCE_DATE_EPOCH
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed May 28, 2019
1 parent ed8308c commit b7a3927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -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
--------
Expand Down
2 changes: 1 addition & 1 deletion sphinx/util/i18n.py
Expand Up @@ -248,7 +248,7 @@ def find_catalog_source_files(locale_dirs, locale, domains=None, gettext_compact
'%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).
'%%': '%',
}
Expand Down

0 comments on commit b7a3927

Please sign in to comment.