Fixed DateUtil returning bad minutes
authorAlexander Ebert <ebert@woltlab.com>
Thu, 9 Jun 2016 10:06:50 +0000 (12:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 9 Jun 2016 10:06:50 +0000 (12:06 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Date/Util.js

index 5c824a1c1ff4925dc5235517481154f01421c628..1ea02e8a060ef47869d251552000636343ca0a0d 100644 (file)
@@ -71,6 +71,7 @@ define(['Language'], function(Language) {
                                        case 'i':
                                                // `00` through `59`
                                                char = date.getMinutes();
+                                               if (char < 10) char = "0" + char;
                                                break;
                                        
                                        // hours