Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 6cafd65

Browse files
author
the-djmaze
committed
Bugfix Log RFC 2822 date parse error for #1554
1 parent 73ac962 commit 6cafd65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snappymail/v/0.0.0/app/libraries/MailSo/Base/DateTimeHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ public static function ParseRFC2822DateString(string $sDateTime) : int
3737
{
3838
$sDateTime = \trim($sDateTime);
3939
if (empty($sDateTime)) {
40-
\SnappyMail\Log::info("No RFC 2822 date to parse");
40+
\SnappyMail\Log::info('', "No RFC 2822 date to parse");
4141
return 0;
4242
}
4343

4444
$sDateTime = \trim(\preg_replace('/ \([a-zA-Z0-9]+\)$/', '', $sDateTime));
4545
$oDateTime = \DateTime::createFromFormat(\DateTime::RFC2822, $sDateTime, static::GetUtcTimeZoneObject());
4646
// 398045302 is 1982-08-13 00:08:22 the date RFC 822 was created
4747
if (!$oDateTime || 398045302 > $oDateTime->getTimestamp()) {
48-
\SnappyMail\Log::notice("Failed to parse RFC 2822 date '{$sDateTime}'");
48+
\SnappyMail\Log::notice('', "Failed to parse RFC 2822 date '{$sDateTime}'");
4949
}
5050
return $oDateTime ? $oDateTime->getTimestamp() : 0;
5151
}

0 commit comments

Comments
 (0)