Commit 82fc1dfb authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Fix issue when passing data in milliseconds

parent 424e6e0e
Loading
Loading
Loading
Loading
+3 −1
Changes for www/local-notification-util.js: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
    }