mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-06 05:04:24 +08:00
Catch Throwable for #1914
This commit is contained in:
parent
24bb509b96
commit
ba496919dd
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ abstract class DateTimeHelper
|
||||||
}
|
}
|
||||||
|
|
||||||
return $timestamp;
|
return $timestamp;
|
||||||
} catch (\Error $error) {
|
} catch (\Throwable $error) {
|
||||||
// Catch integer overflow or other fatal errors
|
// Catch integer overflow or other fatal errors
|
||||||
\SnappyMail\Log::notice('', "Failed to parse RFC 2822 date '{$sDateTime}'");
|
\SnappyMail\Log::notice('', "Failed to parse RFC 2822 date '{$sDateTime}'. {$error->getMessage()}");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue