File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ $.extend(Timepicker.prototype, {
773
773
second != this . second || millisec != this . millisec ||
774
774
( this . ampm . length > 0 &&
775
775
( hour < 12 ) != ( $ . inArray ( this . ampm . toUpperCase ( ) , this . amNames ) !== - 1 ) ) ||
776
- timezone != this . timezone ) ;
776
+ ( ( this . timezone == null && timezone != this . defaultTimezone ) || ( this . timezone != null && timezone != this . timezone ) ) ) ;
777
777
778
778
if ( hasChanged ) {
779
779
@@ -832,12 +832,13 @@ $.extend(Timepicker.prototype, {
832
832
timeAvailable = dt !== null && this . timeDefined ;
833
833
this . formattedDate = $ . datepicker . formatDate ( dateFmt , ( dt === null ? new Date ( ) : dt ) , formatCfg ) ;
834
834
var formattedDateTime = this . formattedDate ;
835
+
835
836
// remove following lines to force every changes in date picker to change the input value
836
837
// Bug descriptions: when an input field has a default value, and click on the field to pop up the date picker.
837
838
// If the user manually empty the value in the input field, the date picker will never change selected value.
838
839
//if (dp_inst.lastVal !== undefined && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0)) {
839
840
// return;
840
- //}
841
+ //}
841
842
842
843
if ( this . _defaults . timeOnly === true ) {
843
844
formattedDateTime = this . formattedTime ;
You can’t perform that action at this time.
0 commit comments