From 4b501ef848d5151945d6097bacad22968efea1ce Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 10 Jan 2018 02:10:53 +0000 Subject: [PATCH] Convert the date property from a string (presumably in local timezone) to a JS Date() object. --- exec/load/sauce_lib.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exec/load/sauce_lib.js b/exec/load/sauce_lib.js index 58b6a48917..30d358f1e4 100644 --- a/exec/load/sauce_lib.js +++ b/exec/load/sauce_lib.js @@ -83,6 +83,7 @@ function read(fname) obj.tinfos = truncsp(file.read(22)); // Do some convenience field parsing/conversions here + obj.date = new Date(obj.date.substr(0, 4), parseInt(obj.date.substr(4,2))-1, obj.date.substr(6,2)); if(obj.datatype == defs.datatype.bin || (obj.datatype == defs.datatype.character && obj.filetype <= defs.filetype.ansimation)) { -- GitLab