From 9c0bb1ba0db9aab09707703e574abbc40fb5d126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Hern=C3=A1ndez=20Garc=C3=ADa?= Date: Wed, 12 Jan 2022 14:27:24 +0100 Subject: [PATCH] Fix user entries with format 24h > 23:45 --- jquery.timeentry.js | 4 +--- timeEntryBasic.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/jquery.timeentry.js b/jquery.timeentry.js index d48a647..029679f 100644 --- a/jquery.timeentry.js +++ b/jquery.timeentry.js @@ -1047,9 +1047,7 @@ if (!time) { return null; } - time.setFullYear(1900); - time.setMonth(0); - time.setDate(0); + time.setUTCFullYear(1900,0,0); return time; } }); diff --git a/timeEntryBasic.html b/timeEntryBasic.html index dc9e442..4b45671 100644 --- a/timeEntryBasic.html +++ b/timeEntryBasic.html @@ -9,7 +9,7 @@