Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calendar month/current selection and clicking #555

Merged
merged 2 commits into from
Oct 17, 2016
Merged

Fix calendar month/current selection and clicking #555

merged 2 commits into from
Oct 17, 2016

Conversation

steven-supersolid
Copy link
Contributor

Code in DateUtils uses local time (e.g. getMonth() instead of getUTCMonth() etc.) so for compatibility state.currentMonth is also now considered local time.

props.local is used in only 2 places:

  1. When constructing state.currentMonth to decide if props.value is in local or UTC time
  2. When sending an outgoing onChange event to convert currentMonth back to local or UTC time

There is no code path where props.local is true so this has not been tested. I can't think why this would be required so would like to remove in a non-bugfix PR.

Have tested in timezones UTC+1, UTC-12, UTC+14 (in which case local time was one day after UTC)

@facebook-github-bot
Copy link

By analyzing the blame information on this pull request, we identified @drew-gross to be a potential reviewer.

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@steven-supersolid
Copy link
Contributor Author

Fixes #515 and #387

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@drew-gross drew-gross merged commit 6a385ca into parse-community:master Oct 17, 2016
georgeloh added a commit to georgeloh/parse-dashboard that referenced this pull request Oct 19, 2016
* master:
  Added support for trusting proxies w/ HTTPS (parse-community#535)
  Fix calendar month/current selection and clicking (parse-community#555)
  Fix text in CONTRIBUTING.md (parse-community#533)
  Adds an "ends with" filter for string queries (parse-community#540)
  Fix documentation link and open link in new browser tab. (parse-community#534)
@steven-supersolid steven-supersolid deleted the hunt.for.dead.october branch August 22, 2017 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants