-
Notifications
You must be signed in to change notification settings - Fork 459
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
[BUG] Issue with certain date format #310
Comments
You're right. This is causing the following error:
I would rather just take the current datetime as throwing an exception would always end in the result, that you can not parse these emails. // Edit: Or we'll leave the date unformatted. I'll commit this change this evening. |
- Updated formatting of class DataPartInfo to make it more human-readable - Issue #310: Fixed issue with unparseable datetimes and updated/added PHPUnit tests
This issue has been fixed. See references above.
The latest release 3.0.12 includes this fix. |
Environment (please complete the following information):
Describe the bug
The line 945 in Mailbox.php reads like this:
If the date does not meet the expected format, the $dateFormatted is a boolean variable so we need to ensure either throw an exception or just take current datetime as alternative?
To Reproduce
Use this date string for example: 7 Nov 2018 23:44:15 -0500
The text was updated successfully, but these errors were encountered: