Skip to content

Calendar: Create helper methods for Date object creation#1818

Merged
fnagel merged 1 commit intojquery:datepickerfrom
fnagel:datepicker-tests-create-date
May 28, 2017
Merged

Calendar: Create helper methods for Date object creation#1818
fnagel merged 1 commit intojquery:datepickerfrom
fnagel:datepicker-tests-create-date

Conversation

@fnagel
Copy link
Member

@fnagel fnagel commented May 17, 2017

Extract all new Date() occurrences in order to simplify a possible fix for our unit test timezone issue.


return $.extend( helper, {
createDate: function( year, month, day ) {
if ( arguments.length === 1 ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need to worry about this case for timezone correction, but having all dates go through the helper does make it easier to reason about in the tests.

@fnagel fnagel merged commit 2b611ba into jquery:datepicker May 28, 2017
@mgol mgol added this to the 1.13 milestone Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants