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
Greetings 馃憢
We use Luxon in our react-native project for date management. When parsing dates and attempting to output the monthShort or weekdayShort components whilst using a real iOS device, we get null values back.
There is an open issue in Luxon stating that this is an implementation issue in Hermes as it works correctly for other JavaScript engines: moment/luxon#1500
Hermes version: bundled with react-native
React Native version: 0.72.5
Platform: iOS
OS version: 16.6.1
import { DateTime } from 'luxon'
...
console.log(DateTime.now().month) // -> 10
console.log(DateTime.now().monthShort) // -> null, but expected Oct or equivalent
The text was updated successfully, but these errors were encountered:
Thank you for reporting this. Unfortunately, this is a known problem in our implementation of formatToParts on iOS. Hermes currently implements Intl on top of the APIs exposed by the platform, but these APIs are not sufficiently broad on iOS to create a correct implementation of formatToParts.
We have disabled DateTimeFormat.prototype.formatToParts on iOS for now, because of the known correctness problems. Instead, we are working on implementing a version of Intl on top of ICU which will allow us to provide a much broader and more correct Intl implementation at the expense of the added binary size cost of ICU.
Bug Description
Greetings 馃憢
We use Luxon in our react-native project for date management. When parsing dates and attempting to output the monthShort or weekdayShort components whilst using a real iOS device, we get null values back.
There is an open issue in Luxon stating that this is an implementation issue in Hermes as it works correctly for other JavaScript engines: moment/luxon#1500
Hermes version: bundled with react-native
React Native version: 0.72.5
Platform: iOS
OS version: 16.6.1
Steps To Reproduce
Direct Hermes example:
moment/luxon#1500 (comment)
Luxon example:
The text was updated successfully, but these errors were encountered: