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.
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 thelocalesobject missing the propertiesamDesignatorandpmDesignator.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.