Commit: 2912428f238670ac9d1359ea4ea2bebaa70d17b1 Author: Ben Ramsey <b...@benramsey.com> Thu, 6 Jul 2017 11:29:13 -0500 Parents: 6dd04a38fe743595be8c69406da160af2e593653 Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=2912428f238670ac9d1359ea4ea2bebaa70d17b1 Log: Use gmdate() to always display date in UTC Changed paths: M common.php Diff: diff --git a/common.php b/common.php index aa18e9b..f18443d 100644 --- a/common.php +++ b/common.php @@ -149,6 +149,6 @@ function format_title($s, $charset) { function format_date($d) { $d = strtotime($d); - $d = date('r', $d); + $d = gmdate('r', $d); return str_replace(" ", " ", $d); } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php