You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if it is in the scope of this library, but I wanted to mention it here since I had the issue today.
We used XDate in a react-native app. Any formatting via .toString('M/d/yy h(:mm)TT'); as shown in the docs would cause the app to crash (not in the simulator, only on the device). The reason was the locales object missing the properties amDesignator and pmDesignator.
Feel free to close the issue, since XDate works fine inside browsers (https://jsfiddle.net/sfd05Lwn/1/). I fixed our issue by simply calculating AM/PM manually.
The text was updated successfully, but these errors were encountered:
I am not sure if it is in the scope of this library, but I wanted to mention it here since I had the issue today.
We used XDate in a react-native app. Any formatting via
.toString('M/d/yy h(:mm)TT');
as shown in the docs would cause the app to crash (not in the simulator, only on the device). The reason was thelocales
object missing the propertiesamDesignator
andpmDesignator
.Feel free to close the issue, since XDate works fine inside browsers (https://jsfiddle.net/sfd05Lwn/1/). I fixed our issue by simply calculating AM/PM manually.
The text was updated successfully, but these errors were encountered: