From fefc85d48190c97a1c692b29b3acbdc07d7fd73f Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Mon, 3 Apr 2017 15:58:28 -0400 Subject: [PATCH] Revert "Parse LastModified date without requiring global timezone" This reverts commit 176fb1084f209974acfa9d2e074e1e7055a151b1. --- min/lib/HTTP/ConditionalGet.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/min/lib/HTTP/ConditionalGet.php b/min/lib/HTTP/ConditionalGet.php index 41dfd2e3..93b7e75d 100644 --- a/min/lib/HTTP/ConditionalGet.php +++ b/min/lib/HTTP/ConditionalGet.php @@ -355,10 +355,7 @@ protected function resourceNotModified() } // 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);