Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jarabe/journal/listmodel.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jarabe/journal/listmodel.py b/src/jarabe/journal/listmodel.py
index cef636e..3902eba 100644
--- a/src/jarabe/journal/listmodel.py
+++ b/src/jarabe/journal/listmodel.py
@@ -147,9 +147,10 @@ class ListModel(gtk.GenericTreeModel, gtk.TreeDragSource):
try:
timestamp = float(metadata.get('timestamp', 0))
except (TypeError, ValueError):
- self._cached_row.append(_('Unknown'))
+ timestamp_content = _('Unknown')
else:
- self._cached_row.append(util.timestamp_to_elapsed_string(timestamp))
+ timestamp_content = util.timestamp_to_elapsed_string(timestamp)
+ self._cached_row.append(timestamp_content)
try:
creation_time = float(metadata.get('creation_time'))