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

[MdDatepicker] Dates are reversed in Safari #1422

Closed
andershjort opened this issue Jan 22, 2018 · 4 comments
Closed

[MdDatepicker] Dates are reversed in Safari #1422

andershjort opened this issue Jan 22, 2018 · 4 comments

Comments

@andershjort
Copy link

Steps to reproduce

Go to https://vuematerial.io/components/datepicker
using Safari

Which browser?

Safari on Osx Version 11.0.2 (12604.4.7.1.6)

What is expected?

Date format should be dd/mm/yyyy

What is actually happening?

Date format is yyyy-mm-dd

@Samuell1
Copy link
Member

This is maybe fixed in dev branch, @VdustR can you check it please?

@VdustR
Copy link
Member

VdustR commented Jan 22, 2018

because safari do not support <input type="date">, it's show 'YYYY-MM-DD' as default while input type is "text":

formattedDate = format(date, 'YYYY-MM-DD')

As the dev branch set mdOverrideNative ture as default, all date picker would be shown as YYYY-MM-DD as default because the input type is text while mdOverrideNative is true.

@andershjort
Copy link
Author

There is a global property
Vue.prototype.$material.locale.dateFormat
Maybe the formattedDate should default to that instead of hardcodet 'YYYY-MM-DD' ?

@Samuell1
Copy link
Member

Samuell1 commented Jan 23, 2018

@andershjort yes, that should be there. thanks for finding this!

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

No branches or pull requests

3 participants