From d02f5b19dc8170ed79dc25cacbd988abe0f04b85 Mon Sep 17 00:00:00 2001 From: Calum Bulmer Date: Sun, 2 Oct 2016 01:13:29 +0100 Subject: [PATCH] Patch bootstrap-timepicker.js as per open PR on bootstrap-timepicker project https://github.com/jdewit/bootstrap-timepicker/pull/203. --- web/js/bootstrap-timepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/bootstrap-timepicker.js b/web/js/bootstrap-timepicker.js index bbb923c5e..8e0462909 100644 --- a/web/js/bootstrap-timepicker.js +++ b/web/js/bootstrap-timepicker.js @@ -355,7 +355,7 @@ return ''; } - return this.hour + ':' + (this.minute.toString().length === 1 ? '0' + this.minute : this.minute) + (this.showSeconds ? ':' + (this.second.toString().length === 1 ? '0' + this.second : this.second) : '') + (this.showMeridian ? ' ' + this.meridian : ''); + return ( this.hour.toString().length === 1 ? '0' + this.hour : this.hour ) + ':' + (this.minute.toString().length === 1 ? '0' + this.minute : this.minute) + (this.showSeconds ? ':' + (this.second.toString().length === 1 ? '0' + this.second : this.second) : '') + (this.showMeridian ? ' ' + this.meridian : ''); }, hideWidget: function() {