diff --git a/src/Core.php b/src/Core.php index aed8bc8c09..599d2b3aac 100644 --- a/src/Core.php +++ b/src/Core.php @@ -4,7 +4,6 @@ declare(strict_types=1); namespace PhpMyAdmin; -use DateTimeInterface; use DateTimeZone; use PhpMyAdmin\Clock\Clock; use PhpMyAdmin\Error\ErrorHandler; @@ -232,7 +231,7 @@ class Core public static function getNoCacheHeaders(ClockInterface $clock): array { $headers = []; - $formattedDateTime = $clock->now()->setTimezone(new DateTimeZone('UTC'))->format(DateTimeInterface::RFC7231); + $formattedDateTime = $clock->now()->setTimezone(new DateTimeZone('UTC'))->format('D, d M Y H:i:s \G\M\T'); // rfc2616 - Section 14.21 $headers['Expires'] = $formattedDateTime;