Skip to content
Snippets Groups Projects
Commit 4b501ef8 authored by rswindell's avatar rswindell
Browse files

Convert the date property from a string (presumably in local timezone) to

a JS Date() object.
parent fb58e008
Branches
Tags
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment