From 0cd6b524be8c7322c36e5dd55b0398acea2d48ea Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 9 Jun 2016 12:06:50 +0200 Subject: [PATCH] Fixed DateUtil returning bad minutes --- wcfsetup/install/files/js/WoltLab/WCF/Date/Util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Date/Util.js b/wcfsetup/install/files/js/WoltLab/WCF/Date/Util.js index 5c824a1c1f..1ea02e8a06 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Date/Util.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Date/Util.js @@ -71,6 +71,7 @@ define(['Language'], function(Language) { case 'i': // `00` through `59` char = date.getMinutes(); + if (char < 10) char = "0" + char; break; // hours -- 2.20.1