Convert date format into string for issue303

This commit is contained in:
Cédric Krier committed 2008-09-01 16:18:55 +02:00
1 parent 9566ec5423
commit a5bcaf75d4
1 file changed
+1 -1
+1 -1
View File
@@ -201,7 +201,7 @@ def setlang(lang=None, locale_dict=None):
for field in locale_dict.keys():
if field == 'date':
global _DATE_FORMAT
_DATE_FORMAT = locale_dict[field]
_DATE_FORMAT = str(locale_dict[field])
continue
conv[field] = locale_dict[field]
locale.localeconv = lambda: conv