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

Not working in IE 11 #18

Open
rashmi-kumari-udaan opened this issue Mar 1, 2018 · 2 comments
Open

Not working in IE 11 #18

rashmi-kumari-udaan opened this issue Mar 1, 2018 · 2 comments

Comments

@rashmi-kumari-udaan
Copy link

its not working in IE 11

@AndrewPoyntz
Copy link
Owner

any more details? example / error log etc?

@Chrisw32
Copy link

I had a similar experience, pipe worked in chrome but not IE, turns out the inputted date was invalid in IE but chrome managed to parse it:
E.G
In Chrome, this works:
console.log(new Date("2018-09-11T07:12:55z"));
Output: Tue Sep 11 2018 17:12:55 GMT+1000 (Australian Eastern Standard Time)

In IE, it fails as an invalid date:
console.log(new Date("2018-09-11T07:12:55z"));
Output: "[date] Invalid Date[date] Invalid Date"

Changing it to a valid ISO8601 formatted date (which Z needs to be uppercase) allows IE to parse the date, resulting in the pipe working again.

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

No branches or pull requests

3 participants