server.js: small temporary workaround
parent
cc8bd1a0c6
commit
c180ce9ea6
|
@ -354,6 +354,8 @@ On Exit: {{onexit}}<br>
|
||||||
|
|
||||||
function stodate(value) {
|
function stodate(value) {
|
||||||
var date = new Date(0);
|
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);
|
date.setSeconds(value);
|
||||||
var timeString = date.toISOString().substring(11, 19);
|
var timeString = date.toISOString().substring(11, 19);
|
||||||
return timeString;
|
return timeString;
|
||||||
|
|
Loading…
Reference in New Issue