server.js: small temporary workaround

master
Nicolò Balzarotti 2023-02-21 16:46:53 +01:00
parent cc8bd1a0c6
commit c180ce9ea6
1 changed files with 2 additions and 0 deletions

2
dist/server.js vendored
View File

@ -354,6 +354,8 @@ On Exit: {{onexit}}<br>
function stodate(value) {
var date = new Date(0);
// Workaround an incompatibility with a temporary version, you can remove this "if"
if (value !== undefined) date.setSeconds(value);
date.setSeconds(value);
var timeString = date.toISOString().substring(11, 19);
return timeString;