There was an error while loading. Please reload this page.
1 parent 0d637bf commit e35dd1dCopy full SHA for e35dd1d
1 file changed
external/lua.js/lua.js
@@ -988,7 +988,7 @@ lua_libs["os"] = {
988
"clock": function () {
989
// This function is supposed to return the time the script has been executing
990
// not the time since it started, but I don't know of a way to do this.
991
- return [(((new Date()).getTime()) / 1000) - _lua_clock_script];
+ return [(((new Date()).getTime()) / 1000) - _lua_clock_start];
992
},
993
"date": function (format, time) {
994
// TODO
@@ -1020,7 +1020,7 @@ lua_libs["os"] = {
1020
if (table) {
1021
not_supported();
1022
} else {
1023
- return [Math.floor(new Date().getTime() / 1000)];
+ return [new Date().getTime() / 1000];
1024
}
1025
1026
};
0 commit comments