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

Fixed date issue if timezone is UT and a 2 digit year #429

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

ferrisbuellers
Copy link
Contributor

Had an error on a production system where an email date header was set to:
Wed, 26 Jul 23 17:21:17 UT

I've updated the regex so it matches as the email has a 2-digit year and the regex was only matching 4-digit years.

Tested on production and this update fixes the issue.
Hopefully, all is fine with this change.

Can see the regex change here:
https://regex101.com/r/EIQBIj/1

@Webklex
Copy link
Owner

Webklex commented Apr 11, 2024

Hi @ferrisbuellers ,
many thanks for your suggested improvements and your pull request!

Best regards & happy coding,

@Webklex Webklex merged commit 70a1342 into Webklex:master Apr 11, 2024
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.

2 participants