From 23d1d1861982b3c8d99915a8fb2ee0ae49232db1 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 31 Mar 2011 13:07:44 -0400 Subject: [PATCH] Convert stringified timestamps from D-Bus to integers We already had the symmetrical code to convert numerical timestamps to strings before sending out D-Bus requests, anyway. Signed-off-by: Federico Mena Quintero --- js/misc/zeitgeist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/misc/zeitgeist.js b/js/misc/zeitgeist.js index 2709ac509..93c7e66cc 100644 --- a/js/misc/zeitgeist.js +++ b/js/misc/zeitgeist.js @@ -134,7 +134,7 @@ Event.fromPlain = function(rawEvent) { subjects, // subjects rawEvent[2]);// payload event.id = rawEvent[0][0]; // id - event.timestamp = rawEvent[0][1]; // timestamp + event.timestamp = parseInt(rawEvent[0][1], 10); // timestamp - it comes as a string over d-bus (yuck) return event; };