fecha
fecha copied to clipboard
Doesn't work on Android
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"
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.