Commit 82fc1dfb by Sebastián Katzer

Fix issue when passing data in milliseconds

parent 424e6e0e
......@@ -153,9 +153,11 @@ exports.convertProperties = function (options) {
}
if (typeof options.at == 'object') {
options.at = Math.round(options.at.getTime()/1000);
options.at = options.at.getTime();
}
options.at = Math.round(options.at/1000);
if (typeof options.data == 'object') {
options.data = JSON.stringify(options.data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment