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 selected date in calendar for different timezones #45

Merged
merged 1 commit into from Jan 15, 2019
Merged

fix selected date in calendar for different timezones #45

merged 1 commit into from Jan 15, 2019

Conversation

IgorOmelyaniuk
Copy link
Contributor

What does this PR do:

Fix selected date in the calendar for different zones

@travix-frontend-services
Copy link
Collaborator

Deploy preview for travix-ui-kit ready!

Built with commit cbb6f1f

https://deploy-preview-45--travix-ui-kit.netlify.com

@rbardini rbardini requested review from a team January 15, 2019 12:41
@@ -246,7 +251,7 @@ export default class Calendar extends Component {
onMouseDown={this.handleItemMouseDown}
onNavNextMonth={() => this.moveToMonth(CALENDAR_MOVE_TO_NEXT)}
onNavPreviousMonth={() => this.moveToMonth(CALENDAR_MOVE_TO_PREVIOUS)}
onSelectDay={e => this.onSelectDay(new Date(e.currentTarget.getAttribute('data-date')))}
onSelectDay={e => this.onSelectDay(e.currentTarget.getAttribute('data-date'))}
Copy link
Contributor

Choose a reason for hiding this comment

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

Any specific reason to not pass a date object to onSelectDay anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No any specific reason, for me it just looks better and simpler.

@rbardini rbardini added the bug Something isn't working label Jan 15, 2019
@rbardini rbardini self-assigned this Jan 15, 2019
@rbardini rbardini merged commit 0a0b5ae into Travix-International:master Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants