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

fix: accept negative timezone in isDateString #564

Merged
merged 1 commit into from Mar 26, 2020

Conversation

alencarandre
Copy link
Contributor

@alencarandre alencarandre commented Mar 26, 2020

Issue

#565

Expected behavior

String like "2018-01-04T08:15:30-04:00" gives valid

Actual behavior

String like "2018-01-04T08:15:30-04:00" gives invalid

Solution

This PR add - sign to regex in order to validation accept negative timezones

@vlapo vlapo changed the title Accept negative timezone fix: accept negative timezone in isDateString Mar 26, 2020
@vlapo vlapo merged commit 2012d72 into typestack:master Mar 26, 2020
@vlapo
Copy link
Contributor

vlapo commented Mar 26, 2020

Thank you!

@alencarandre alencarandre deleted the fix-to-date-string-decorator branch March 27, 2020 17:58
@github-actions
Copy link

github-actions bot commented Aug 3, 2020

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants