php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

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

Open ferrisbuellers opened this issue 1 year ago • 0 comments

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

ferrisbuellers avatar Jul 27 '23 08:07 ferrisbuellers