better HTTP timestamp

darcs-hash:20081202044441-5ed1f-63025fde108bff917253995f448f841160c8e394.gz
This commit is contained in:
Evan Prodromou 2008-12-01 23:44:41 -05:00
parent be33850c5f
commit df5ce60edc

View File

@ -73,7 +73,7 @@ class Action { // lawsuit
} }
if ($lm) { if ($lm) {
header('Last-Modified: ' . date(DATE_RFC822, $lm)); header('Last-Modified: ' . date(DATE_RFC1123, $lm));
$if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE']; $if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
if ($if_modified_since) { if ($if_modified_since) {
$ims = strtotime($if_modified_since); $ims = strtotime($if_modified_since);