DateTime.fromIso() producing invalid DateTime on iOS 9 Safari
See original GitHub issueDescription
The following code snippet creates an invalid DateTime in Safari on iOS 9 and a valid DateTime in every other browser:
var dateTime = luxon.DateTime.fromISO("2019-03-13", {
zone: "Europe/Berlin"
});
It should return a valid DateTime in Safari on iOS 9, too.
Reproduction link
Reproduction: https://0126kq78v0.codesandbox.io/ (open in iOS 9 Safari) Code: https://codesandbox.io/s/0126kq78v0.
Versions
Luxon: 1.11.4 Browser: Safari on iOS 9
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Safari returns "invalid date" when parsing a YYYY-MM ...
You can parse to a luxon DateTime, then simply call .toJSDate() to get a Date, this should mean minimal code changes:.
Read more >If you can't change the time or time zone on your Apple device
Set the date and time manually. If your device still shows an incorrect date, time, or time zone, change each setting manually instead...
Read more >Safari Technology Preview Release Notes - Apple Developer
Fixed an issue where browser.tabs sometimes returned an incorrect URL for pinned tabs. Bug Fixes. Fixed the Share Menu when sharing an image...
Read more >iOS 16 - Apple
iOS 16 brings all-new personalized Lock Screens, Focus filters, Shared Photo Library, and game-changing messaging features to iPhone.
Read more >If you can't connect to the App Store, iTunes Store, or other ...
If the date and time are incorrect, update them or turn on the option to set date and time automatically. On your iPhone...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Awesome. Thanks for being such a great maintainer!
I’ve never tried iOS Safari 9 so I don’t have it in the support matrix. Can you check Luxon’s
Info.features
on it?