server.js: fix wrong s to h function

master
Nicolò Balzarotti 2023-02-22 12:09:34 +01:00
parent fcda05dfc6
commit 3e1e242301
1 changed files with 1 additions and 4 deletions

5
dist/server.js vendored
View File

@ -373,11 +373,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;
return date.toISOString().substring(11, 19);
}
function current_recipe(data) {