diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-02-24 13:24:18 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-02-24 13:24:18 +0100 |
commit | 6d88439ada7c841b10a8de3da846f7cc1cf5842a (patch) | |
tree | c787d70aeaacbe9a9a5e74be369c0f1998cc2e22 /inc | |
parent | 16fa96576f9677bfc9f96e2761a4afb2c01290da (diff) | |
download | rpg-6d88439ada7c841b10a8de3da846f7cc1cf5842a.tar.gz rpg-6d88439ada7c841b10a8de3da846f7cc1cf5842a.tar.bz2 |
return time in GMT for conditional requests #1081
darcs-hash:20070224122418-7ad00-df595caf9d861bc6b4e5bf2d478df890b6f5bf7a.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/pageutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |