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(datepicker): force Intl.DateTimeFormat to use UTC time zone ... #5747

Merged
merged 3 commits into from Jul 25, 2017

Conversation

mmalerba
Copy link
Contributor

so it doesn't display incorrect dates.

fixes #5185

@julianobrasil Thanks for tracking down the root issue!

@mmalerba mmalerba requested a review from crisbeto July 14, 2017 00:02
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 14, 2017
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jul 14, 2017
@crisbeto
Copy link
Member

@mmalerba seems like there's a linting error and the output format is different on iOS Safari.

@crisbeto crisbeto removed the action: merge The PR is ready for merge by the caretaker label Jul 14, 2017
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Jul 14, 2017
@mmalerba
Copy link
Contributor Author

lint + tests fixed

date = new Date(Date.UTC(
date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(),
date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
displayFormat = Object.assign({}, displayFormat, {timeZone: 'utc'});
Copy link
Contributor

@kara kara Jul 19, 2017

Choose a reason for hiding this comment

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

@mmalerba Object.assign is breaking in Google. Can you switch to our util extendObject?

@kara kara added presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged and removed action: merge The PR is ready for merge by the caretaker labels Jul 19, 2017
@kara kara assigned mmalerba and unassigned crisbeto Jul 19, 2017
@mmalerba mmalerba added action: merge The PR is ready for merge by the caretaker and removed presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged labels Jul 21, 2017
@mmalerba
Copy link
Contributor Author

fixed

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Datepicker: Incorrect date displayed when selecting a date in the first week of November 1999
5 participants