Skip to content

Commit

Permalink
explicitly setting timezone to avoid warnings as reported by Sonika at
Browse files Browse the repository at this point in the history
  • Loading branch information
futtta committed Oct 18, 2017
1 parent 92779ac commit f38408e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/default.php
Expand Up @@ -37,6 +37,7 @@
$eTag=md5($contents);
$modTime=filemtime(__FILE__.'.none');

date_default_timezone_set("UTC");
$eTagMatch = (isset($_SERVER['HTTP_IF_NONE_MATCH']) && strpos($_SERVER['HTTP_IF_NONE_MATCH'],$eTag));
$modTimeMatch = (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) === $modTime);

Expand Down
1 change: 1 addition & 0 deletions config/delayed.php
Expand Up @@ -47,6 +47,7 @@
$eTag=md5($contents);
$modTime=filemtime(__FILE__.'.none');

date_default_timezone_set("UTC");
$eTagMatch = (isset($_SERVER['HTTP_IF_NONE_MATCH']) && strpos($_SERVER['HTTP_IF_NONE_MATCH'],$eTag));
$modTimeMatch = (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) === $modTime);

Expand Down

0 comments on commit f38408e

Please sign in to comment.