diaspy.models.Notification.when() use the create_at json field instead looking into...
authorChristian Giménez <cnngimenez@gmail.com>
Mon, 25 May 2015 22:40:13 +0000 (19:40 -0300)
committerChristian Giménez <cnngimenez@gmail.com>
Mon, 25 May 2015 22:40:13 +0000 (19:40 -0300)
diaspy/models.py

index 8c1d72d9766b40c6705a909ae5cb64d101ae52f1..5f1c5383c8a80e007f79d4bf658772d7d7e6c6ac 100644 (file)
@@ -195,7 +195,7 @@ class Notification():
     def when(self):
         """Returns UTC time as found in note_html.
         """
-        return self._when_regexp.search(self._data['note_html']).group(0)
+        return self._data['created_at']
 
     def mark(self, unread=False):
         """Marks notification to read/unread.