Closed akhilgopi007 closed 7 years ago
@rip-the-jacker
Need for info:
app-datepicker
versionWill look into it in depth to see if it can be reproduced.
@rip-the-jacker Just added locale='en' and it worked fine for me.
@sp1rs Thanks that works.
@rip-the-jacker
Tested the issue throughly on all browsers on latest macOS and was unable to reproduce the issue.
Yell at me again for persistent issue.
Thank you for reporting. 😄 Thank you @sp1rs for the solution 🎉 .
@motss I had set format="". Maybe that's what caused it.
Hmm...that's could be what worth looking into.
The issue is .. Chrome: 57 : window.Intl.DateTimeFormat().resolvedOptions().locale ==> 'en-gb' Chrome 58 : window.Intl.DateTimeFormat().resolvedOptions().locale ==> 'und'
And i just updated the chrome from 57 to 58. Somehow the locale changed.
@motss, Can we have check that if locale is undefined 'und' than use 'en' as default.
@sp1rs Strange enough. Mine is still en-US
.
@motss Did you updated the chrome to 58?
@sp1rs Tested on Chrome 58, 59, 60 and all returned en-US
.
@motss Still, if window.Intl.DateTimeFormat().resolvedOptions().locale
returns und
then code should handle this case.
@sp1rs Indeed. This is definitely needed to be fixed.
@motss I was about to create a pull request, but you fixed it.
Before updating chrome, selecting date used to show proper date format. But now the date is shown in a weird way with month denoted by number instead. PFA before and after Chroime update.
Before
After