summaryrefslogtreecommitdiff
path: root/src/loslib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/loslib.js')
-rw-r--r--src/loslib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loslib.js b/src/loslib.js
index 66bcb18..6419524 100644
--- a/src/loslib.js
+++ b/src/loslib.js
@@ -199,7 +199,7 @@ const l_checktime = function(L, arg) {
const os_difftime = function(L) {
let t1 = l_checktime(L, 1);
let t2 = l_checktime(L, 2);
- lua_pushnumber(L, new Date(t1) - new Date(t2));
+ lua_pushnumber(L, t1 - t2);
return 1;
};