Skip to content

Date Pipe add GMT hours to formatted date in safari #17478

@dhuallanca

Description

@dhuallanca

I'm submitting a ... (check one with "x")

[ X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
Date pipe is adding -5 hours in safari

Expected behavior
Should display the same date without adding or substract hours.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/ZTHw7iYDY9JaJXAjbcU0?p=preview

What is the motivation / use case for changing the behavior?
it is a bug in safari, for other browser works great.

Please tell us about your environment:
macOS Sierra 10.12.5

  • Angular version: 4.2.0

  • Browser: Safari 10.1.1

  • Language: TypeScript 2.3.1

Metadata

Metadata

Assignees

Labels

area: i18nIssues related to localization and internationalizationtype: bug/fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions