Skip to content

Commit de2192d

Browse files
committed
MAGETWO-53299: "Go Today" button is not working for dates range component
- added getTimezoneDate method for backward compatibility
1 parent f9987b1 commit de2192d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/web/mage/calendar.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,15 @@
388388
_destroy: function () {
389389
this.element[this._picker()]('destroy');
390390
this._super();
391+
},
392+
393+
/**
394+
* Method is kept for backward compatibility and unit-tests acceptance
395+
* see \mage\calendar\calendar-test.js
396+
* @return {Object} date
397+
*/
398+
getTimezoneDate: function () {
399+
return this._getTimezoneDate();
391400
}
392401
});
393402

0 commit comments

Comments
 (0)