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

Non-valid .toISOString(), must include 'Z' at the end #50

Open
warmrobot opened this issue Mar 26, 2025 · 1 comment
Open

Non-valid .toISOString(), must include 'Z' at the end #50

warmrobot opened this issue Mar 26, 2025 · 1 comment

Comments

@warmrobot
Copy link

warmrobot commented Mar 26, 2025

https://github.com/date-fns/tz/blob/main/src/date/index.js#L29-L30

And there is no seconds, by the way

@GianlucaWassermeyer
Copy link

Hello,

The 'Z' indicates that the ISOString is in Zulu time (UTC). He uses the variant with the timezone offset inside the ISOString for TZDate, which is just as valid as the other format. Furthermore, JavaScript Date does not accept any timezone offsets with seconds; it would be an invalid ISOString.

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