utils.py
branchtls-sprint
changeset 1180 5536d4ee2bc3
parent 1134 f885df228fc0
child 1387 4af48b1aaf29
--- a/utils.py	Fri Mar 27 12:30:19 2009 +0100
+++ b/utils.py	Fri Mar 27 12:30:59 2009 +0100
@@ -53,7 +53,7 @@
     """
     # date format may depend on the locale
     encoding = locale.getpreferredencoding(do_setlocale=False) or 'UTF-8'
-    return unicode(date.strftime(fmt), encoding)
+    return unicode(date.strftime(str(fmt)), encoding)
 
 def make_uid(key):
     """forge a unique identifier"""