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

Doesn't work on Android #92

Open
mikkan-39 opened this issue Jan 26, 2022 · 1 comment
Open

Doesn't work on Android #92

mikkan-39 opened this issue Jan 26, 2022 · 1 comment

Comments

@mikkan-39
Copy link

mikkan-39 commented Jan 26, 2022

Enviroment: React Native mobile app
I was trying to use your format(date, "mediumDate") instead of javascript's date.prototype.toLocaleDateString(), since that one just straight up doesn't work on android. Unfortunately fecha seems to have the same problem:

date = new Date("2022-01-14")
format(date, "mediumDate"); // on iOS returns "14 янв. 2022 г., 20:41"
format(date, "mediumDate"); // on Android returns "14/01/22"
@taylorhakes
Copy link
Owner

Fecha just uses the internal APIs of the browser, so it will contain the same issues as the browser. It's an android feature that is missing. Not really even a bug.

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

2 participants