We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On Android devices, calling the Date.prototype.toLocaleDateString() function with a date that is earlier than 1900-01-01 crashes the app.
System: OS: macOS 11.2 CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz Memory: 708.55 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.15.3 - ~/.nvm/versions/node/v14.15.3/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.5.3 - ~/.nvm/versions/node/v14.15.3/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 24, 29 Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3 System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.6953283 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 1.8.0_282 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: ~0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
try { new Date('1899-12-31').toLocaleDateString('en'); } catch {}
The app does not crash when it is opened on Android.
https://snack.expo.io/@yonom/grumpy-cookies
The text was updated successfully, but these errors were encountered:
Issue is resolved. Tested on React Native 0.66.4
Sorry, something went wrong.
No branches or pull requests
Description
On Android devices, calling the Date.prototype.toLocaleDateString() function with a date that is earlier than 1900-01-01 crashes the app.
React Native version:
Steps To Reproduce
Expected Results
The app does not crash when it is opened on Android.
Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/@yonom/grumpy-cookies
The text was updated successfully, but these errors were encountered: