Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

1.2.1 ugly Date format in Safari #178

Closed
Delagen opened this issue May 15, 2016 · 3 comments
Closed

1.2.1 ugly Date format in Safari #178

Delagen opened this issue May 15, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@Delagen
Copy link

Delagen commented May 15, 2016

44:01 AM44:01 AM 66/66/20162016, 44:01 AM66/66/20162016, 44:01 AM
In angular 2. In 1.1.0 was missing leading zero
{{date|date:'shortTime'}}
{{date|date:'yMdjm'}}

angular/angular#3333

@eschiebel
Copy link

eschiebel commented May 16, 2016

I am seeing the same issue.
new Intl.DateTimeFormat('en', {month:'numeric', day: 'numeric'}).format(new Date())
returns "55/161655/1616" (today is 5/16)

similar issues with formatting times.

Weird thing is. If I'm accessing my app from a server running Windows, then safari formats dates and times correctly. if I'm accessing my app from a server running Ubuntu, then safari formats dates and times incorrectly. I've diff'd the node_modules/intl directories on the 2 systems and don't see any differences. This is baffling, but a pretty big problem for us.

@caridy caridy added the bug label May 16, 2016
@caridy caridy self-assigned this May 16, 2016
@caridy
Copy link
Collaborator

caridy commented May 16, 2016

fixing this today.

@caridy caridy closed this as completed in 6057ef3 May 16, 2016
@caridy caridy added this to the v1.2.2 milestone May 16, 2016
@Delagen
Copy link
Author

Delagen commented May 17, 2016

Again the same issue with missing leading zero on Safari #152
4:01 AM
6/6/2016, 4:01 AM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants