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:
parent
23bf5db80c
commit
23d1d18619
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user