1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-13 09:34:54 +02:00

Revert "Parse LastModified date without requiring global timezone"

This reverts commit 176fb1084f.
This commit is contained in:
Steve Clay
2017-04-03 15:58:28 -04:00
parent 21cc3e7224
commit fefc85d481

View File

@@ -355,10 +355,7 @@ class HTTP_ConditionalGet {
}
// strip off IE's extra data (semicolon)
list($ifModifiedSince) = explode(';', $_SERVER['HTTP_IF_MODIFIED_SINCE'], 2);
$date = new DateTime($ifModifiedSince, new DateTimeZone('UTC'));
if ($date->getTimestamp() >= $this->_lmTime) {
if (strtotime($ifModifiedSince) >= $this->_lmTime) {
// Apache 2.2's behavior. If there was no ETag match, send the
// non-encoded version of the ETag value.
$this->_headers['ETag'] = $this->normalizeEtag($this->_etag);