mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Non-ASCII in dates are now rendered as xml entities
This commit is contained in:
parent
90c084f818
commit
284233a920
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class Page(object):
|
|||
self.date_format = settings['DEFAULT_DATE_FORMAT']
|
||||
|
||||
if hasattr(self, 'date'):
|
||||
self.locale_date = self.date.strftime(self.date_format).decode('utf')
|
||||
self.locale_date = self.date.strftime(self.date_format.encode('ascii','xmlcharrefreplace')).decode('utf')
|
||||
|
||||
# store the settings ref.
|
||||
self._settings = settings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue