-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Parsing date with arabian symbols throw Webklex\PHPIMAP\Exceptions\GetMessagesFailedException Invalid message date #189
Comments
Hi @shadow762 , Can you think of a way to parse those dates? Best regards, |
Hi i have the same problem PHP Warning: DateTime::modify(): Failed to parse time string (Fri, 11 Feb 2022 16:03:10 +0300 (RUS03)) at position 36 (0): Unexpected character in /opt/www/img.voltag.ru/vendor/nesbot/carbon/src/Carbon/Traits/Modifiers.php on line 439 |
If mail time is The parseDate method of file webklex\php-imap\src\Header.php can be changed to the following Old
New
|
Hi!
I have one message with date which contains arabian symbols.
As far as I know Carbon can't parse this kind of date by default so first I get exception from Carbon
"Could not parse '��, 19 ��� 2018 16:20:35': DateTime::__construct(): Failed to parse time string (��, 19 ��� 2018 16:20:35) at position 0 (�): Unexpected character"
and InvalidMessageDateException later.
This exception stops reading the mailbox at all.
Is there way to solve this issue? Perhaps not to set date at all in this case?
The text was updated successfully, but these errors were encountered: