missing required date format tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 16 Apr 2009 15:38:58 +0200
branchtls-sprint
changeset 1380 aa1586de4563
parent 1373 5e6abf61636d
child 1386 8ba1f0d36c7e
missing required date format
web/views/basecontrollers.py
--- a/web/views/basecontrollers.py	Wed Apr 15 17:30:03 2009 +0200
+++ b/web/views/basecontrollers.py	Thu Apr 16 15:38:58 2009 +0200
@@ -379,7 +379,7 @@
 
     def js_format_date(self, strdate):
         """returns the formatted date for `msgid`"""
-        date = strptime(strdate)
+        date = strptime(strdate, '%Y-%m-%d %H:%M:%S')
         return self.format_date(date)
 
     def js_external_resource(self, resource):