Merge pull request #8685 from tk0miya/8683_strftime_z

Fix #8683: html_last_updated_fmt does not support UTC offset (%z)
This commit is contained in:
Takeshi KOMIYA
2021-01-14 01:11:24 +09:00
committed by GitHub
3 changed files with 11 additions and 1 deletions

View File

@@ -87,6 +87,12 @@ def test_format_date():
assert i18n.format_date(format, date=datet) == 'Feb 7, 2016, 5:11:17 AM'
assert i18n.format_date(format, date=date) == 'Feb 7, 2016'
# timezone
format = '%Z'
assert i18n.format_date(format, date=datet) == 'UTC'
format = '%z'
assert i18n.format_date(format, date=datet) == '+0000'
@pytest.mark.xfail(os.name != 'posix', reason="Path separators don't match on windows")
def test_get_filename_for_language(app):