Handle dates formats with Unicode 'ARABIC COMMA' (U+060C) characters
This commit is contained in:
parent
1a4e3b9885
commit
484d3c7d7a
@ -107,7 +107,7 @@ def date(xentry, name, parsed):
|
||||
formatted = time.strftime("%Y-%m-%dT%H:%M:%SZ", parsed)
|
||||
xdate = createTextElement(xentry, name, formatted)
|
||||
formatted = time.strftime(config.date_format(), parsed)
|
||||
xdate.setAttribute('planet:format', formatted)
|
||||
xdate.setAttribute('planet:format', formatted.decode('utf-8'))
|
||||
|
||||
def category(xentry, tag):
|
||||
xtag = xentry.ownerDocument.createElement('category')
|
||||
|
Loading…
Reference in New Issue
Block a user