-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
React Native: Formatting token HH does not work correctly if it is midnight #72
Comments
what is your locale? |
es |
React Native app with Expo SDK 51 running on an Android device. "@formkit/tempo": "^0.1.2", let dateParsed = parse("2024-09-10 00:00:00", "YYYY-MM-DD HH:mm:ss", "es"); // 2024-09-09T22:00:00.000Z |
It seems the problem is that the JS engine included with Android is simplified and lacks many UI-focused APIs, as headless JS engines tend to be used for non-UI purposes, so there is no need to add more UI to it. Therefore, it does not have the Intl. API available. |
Perhaps this Stack Overflow might help? |
Yes, thank you very much. |
format(date, "YYYY-MM-DD HH:mm")
returns 2024-09-10 0:00 instead of 2024-09-10 00:00
The text was updated successfully, but these errors were encountered: