From 6d88439ada7c841b10a8de3da846f7cc1cf5842a Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 24 Feb 2007 13:24:18 +0100 Subject: return time in GMT for conditional requests #1081 darcs-hash:20070224122418-7ad00-df595caf9d861bc6b4e5bf2d478df890b6f5bf7a.gz --- inc/pageutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/pageutils.php') diff --git a/inc/pageutils.php b/inc/pageutils.php index 6471413b6..243d9ae1d 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -439,7 +439,7 @@ function isVisiblePage($id){ function http_conditionalRequest($timestamp){ // A PHP implementation of conditional get, see // http://fishbowl.pastiche.org/archives/001132.html - $last_modified = substr(date('r', $timestamp), 0, -5).'GMT'; + $last_modified = substr(gmdate('r', $timestamp), 0, -5).'GMT'; $etag = '"'.md5($last_modified).'"'; // Send the headers header("Last-Modified: $last_modified"); -- cgit v1.2.3