vendor/assets/javascripts/pickadate/picker.time.js in pickadate-rails-1.2.1 vs vendor/assets/javascripts/pickadate/picker.time.js in pickadate-rails-1.2.2

- old
+ new

@@ -1,8 +1,8 @@ /*! - * Time picker for pickadate.js v3.2.1 + * Time picker for pickadate.js v3.2.2 * http://amsul.github.io/pickadate.js/time.htm */ /*jshint debug: true, @@ -435,16 +435,16 @@ }, H: function( string, timeObject ) { // If there's string, then get the digits length. // Otherwise return the selected hour in "military" format as a string. - return string ? Picker._.digits( string ) : '' + timeObject.hour + return string ? Picker._.digits( string ) : '' + ( timeObject.hour % 24 ) }, HH: function( string, timeObject ) { // If there's string, then get the digits length. // Otherwise return the selected hour in "military" format with a leading zero. - return string ? Picker._.digits( string ) : Picker._.lead( timeObject.hour ) + return string ? Picker._.digits( string ) : Picker._.lead( timeObject.hour % 24 ) }, i: function( string, timeObject ) { // If there's a string, then the length is always 2. // Otherwise return the selected minutes.