From 3e1e242301e6c3cdd90e2733fc196796080616b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Wed, 22 Feb 2023 12:09:34 +0100 Subject: [PATCH] server.js: fix wrong s to h function --- dist/server.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dist/server.js b/dist/server.js index 6fb9b23..9d382b6 100644 --- a/dist/server.js +++ b/dist/server.js @@ -373,11 +373,8 @@ On Exit: {{onexit}}
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) {