HostlistCompiler icon indicating copy to clipboard operation
HostlistCompiler copied to clipboard

error time

Open liang-hiwin opened this issue 3 years ago • 0 comments

lines.push(`! Last modified: ${(new Date()).toISOString()}`);

Should be changed to

 lines.push(`! Last modified: ${(new Date()).toLocaleString()}`);

Timezone is lost when converting date using toISOString(), resulting in a time difference of 8 hours

liang-hiwin avatar Feb 13 '22 06:02 liang-hiwin