Skip to content

Commit dd9fa55

Browse files
authored
Fix time format in headers.
The hour should be in 2 digit format while "G" doesn't add leading zero in case of single digit.
1 parent 0510942 commit dd9fa55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Middleware/GlideMiddleware.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ protected function _withCacheHeaders($response, $cacheTime, $modifiedTime)
315315

316316
return $response
317317
->withHeader('Cache-Control', 'public,max-age=' . $maxAge)
318-
->withHeader('Date', gmdate('D, j M Y G:i:s \G\M\T', time()))
319-
->withHeader('Last-Modified', gmdate('D, j M Y G:i:s \G\M\T', (int)$modifiedTime))
320-
->withHeader('Expires', gmdate('D, j M Y G:i:s \G\M\T', $expire));
318+
->withHeader('Date', gmdate('D, j M Y H:i:s \G\M\T', time()))
319+
->withHeader('Last-Modified', gmdate('D, j M Y H:i:s \G\M\T', (int)$modifiedTime))
320+
->withHeader('Expires', gmdate('D, j M Y H:i:s \G\M\T', $expire));
321321
}
322322

323323
/**

0 commit comments

Comments
 (0)