From: Alexander Ebert Date: Thu, 9 Jun 2016 10:06:50 +0000 (+0200) Subject: Fixed DateUtil returning bad minutes X-Git-Tag: 3.0.0_Beta_1~1477 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cd6b524be8c7322c36e5dd55b0398acea2d48ea;p=GitHub%2FWoltLab%2FWCF.git Fixed DateUtil returning bad minutes --- 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