question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DateTime.fromIso() producing invalid DateTime on iOS 9 Safari

See original GitHub issue

Description

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:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nikwencommented, Mar 15, 2019

Awesome. Thanks for being such a great maintainer!

1reaction
icambroncommented, Mar 14, 2019

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found