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

Add date parsing regex case for duplicated dates

Open Nuranto opened this issue 2 months ago • 0 comments

I went into this error :

Carbon\Exceptions\InvalidFormatException: Could not parse 'Tue, 30 Sep 2025 15:23:24 -0300 Tue, 30 Sep 2025 15:23:24 -0300': Failed to parse time string (Tue, 30 Sep 2025 15:23:24 -0300 Tue, 30 Sep 2025 15:23:24 -0300) at position 37 (3): Double date specification

This PR fixes the issue.

Note: another regexp was catching the exception (unsuccessfully), and the final error that was throwed was the "Trailing data" error.

Nuranto avatar Oct 01 '25 17:10 Nuranto