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

IE 11 Datepicker not working #8228

Closed
tianyangj opened this issue Nov 4, 2017 · 2 comments · Fixed by #7858
Closed

IE 11 Datepicker not working #8228

tianyangj opened this issue Nov 4, 2017 · 2 comments · Fixed by #7858
Assignees

Comments

@tianyangj
Copy link

tianyangj commented Nov 4, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Datepicker should work

What is the current behavior?

Datepicker is throwing exception

What are the steps to reproduce?

Use IE 11, go to https://material.angular.io/components/datepicker/overview, then try open datepicker

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material Beta.12

Is there anything else we should know?

I think this is introduced after #5747.

https://github.com/angular/material2/blob/master/src/lib/core/datetime/native-date-adapter.ts#L74, useUtcForDisplay is hard coded to true. According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat IE 11 doesn't support timeZone option.

I tested the following script on IE 11 console, it is returning error.

var options = { year: 'numeric', month: 'short', timeZone: 'utc' };
console.log(new Intl.DateTimeFormat('en-US', options).format(new Date()));

@mmalerba
Copy link
Contributor

mmalerba commented Nov 7, 2017

#7858 turns useUtcForDisplay off for IE

@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 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants