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 <federico@gnome.org>
This commit is contained in:
Federico Mena Quintero 2011-03-31 13:07:44 -04:00
parent 23bf5db80c
commit 23d1d18619

View File

@ -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;
};