diff options
author | Georg Brandl <georg@python.org> | 2008-11-13 09:35:01 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-11-13 09:35:01 +0100 |
commit | 5b10659f871404cc8cc8909933ef5a78193595d7 (patch) | |
tree | f539d998c2ed9b5c10dba2ac2d193ea0c7a8ed17 /sphinx/builder.py | |
parent | 4342f0398679333eb8fb7b780a94580850ecb874 (diff) | |
download | sphinx-git-5b10659f871404cc8cc8909933ef5a78193595d7.tar.gz |
Fix for Unicode strftime formats.
Diffstat (limited to 'sphinx/builder.py')
-rw-r--r-- | sphinx/builder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builder.py b/sphinx/builder.py index d91adab7a..159fe8038 100644 --- a/sphinx/builder.py +++ b/sphinx/builder.py @@ -26,7 +26,7 @@ from docutils.frontend import OptionParser from docutils.readers.doctree import Reader as DoctreeReader from sphinx import addnodes, locale, __version__ -from sphinx.util import ensuredir, relative_uri, SEP, os_path, texescape +from sphinx.util import ensuredir, relative_uri, SEP, os_path, texescape, ustrftime from sphinx.htmlhelp import build_hhx from sphinx.htmlwriter import HTMLWriter, HTMLTranslator, SmartyPantsHTMLTranslator from sphinx.textwriter import TextWriter @@ -405,7 +405,7 @@ class StandaloneHTMLBuilder(Builder): # typically doesn't include the time of day lufmt = self.config.html_last_updated_fmt if lufmt is not None: - self.last_updated = time.strftime(lufmt or _('%b %d, %Y')) + self.last_updated = ustrftime(lufmt or _('%b %d, %Y')) else: self.last_updated = None |