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

add lowercase t and z to ISO parsing regexes and unit tests #1668

Merged
merged 5 commits into from
Apr 7, 2025

Conversation

dobon
Copy link
Contributor

@dobon dobon commented Nov 21, 2024

I've added the unit tests requested in the discussion on benjamin-pike's PR #1624

Adds the ability for DateTime.fromISO to parse ISO strings containing lowercase t and z characters.
Resolves #1610

@dobon
Copy link
Contributor Author

dobon commented Mar 21, 2025

@diesieben07 Hey, sorry if this is not the right way to request review, and please let me know if there's a more appropriate/official way, but can you or another maintainer take a look at this PR? I see you've been active most recently.

I've also got another unrelated PR ready for review that I'd appreciate feedback on: #1670

Both of these PRs are fixes for other people's PRs that were tagged with "needs work".

Copy link
Collaborator

@diesieben07 diesieben07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dobon and thank you for picking this up. I apologize for the late reply. This looks good.
Can you add one more test that tests that a lowercase z in combination with { setZone: true } results in the resulting DateTime having UTC zone?

@dobon dobon requested a review from diesieben07 March 26, 2025 11:23
@diesieben07 diesieben07 merged commit d42af43 into moment:master Apr 7, 2025
4 checks passed
@diesieben07
Copy link
Collaborator

Thank you!

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

Successfully merging this pull request may close these issues.

DateTime.fromISO does not work with lowercase 't'
3 participants