From 6cafd65690ff0c7ad94c48dadbd223fcb3aef388 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 30 Apr 2024 02:58:22 +0200 Subject: [PATCH] Bugfix Log RFC 2822 date parse error for #1554 --- .../v/0.0.0/app/libraries/MailSo/Base/DateTimeHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Base/DateTimeHelper.php b/snappymail/v/0.0.0/app/libraries/MailSo/Base/DateTimeHelper.php index 2666f55b53..4e234482b8 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Base/DateTimeHelper.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Base/DateTimeHelper.php @@ -37,7 +37,7 @@ public static function ParseRFC2822DateString(string $sDateTime) : int { $sDateTime = \trim($sDateTime); if (empty($sDateTime)) { - \SnappyMail\Log::info("No RFC 2822 date to parse"); + \SnappyMail\Log::info('', "No RFC 2822 date to parse"); return 0; } @@ -45,7 +45,7 @@ public static function ParseRFC2822DateString(string $sDateTime) : int $oDateTime = \DateTime::createFromFormat(\DateTime::RFC2822, $sDateTime, static::GetUtcTimeZoneObject()); // 398045302 is 1982-08-13 00:08:22 the date RFC 822 was created if (!$oDateTime || 398045302 > $oDateTime->getTimestamp()) { - \SnappyMail\Log::notice("Failed to parse RFC 2822 date '{$sDateTime}'"); + \SnappyMail\Log::notice('', "Failed to parse RFC 2822 date '{$sDateTime}'"); } return $oDateTime ? $oDateTime->getTimestamp() : 0; }