Skip to content
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] toLocaleDateString make Android app crash for dates after 01.01.2039 #3586

Closed
dianatalpos opened this issue Dec 2, 2023 · 1 comment

Comments

@dianatalpos
Copy link

dianatalpos commented Dec 2, 2023

Using toLocaleDateString make android app to crash with native error:

Crashed: null pointer dereference 1
SIGSEGV 0x0000000000000000

Error taken from Firebase Crashalytics.
Env:
"date-fns": "^2.30.0",
"react-native": "0.70.8",
"react": "18.1.0",
"react-dom": "18.1.0",

Method call:
date.toLocaleDateString("ro-RO", {
year: "numeric",
month: "short",
day: "2-digit",
});

@kossnocorp
Copy link
Member

Thank you for the report, but it's not a bug in date-fns, hence I can handle it

@kossnocorp kossnocorp closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants