fecha icon indicating copy to clipboard operation
fecha copied to clipboard

Doesn't work on Android

Open mikkan-39 opened this issue 2 years ago • 1 comments

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"

mikkan-39 avatar Jan 26 '22 14:01 mikkan-39

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.

taylorhakes avatar Apr 12 '22 04:04 taylorhakes