com web/news: Use gmdate() to always display date in UTC: common.php

From: Date: Thu, 06 Jul 2017 16:29:13 +0000
Subject: com web/news: Use gmdate() to always display date in UTC: common.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-26140@lists.php.net to get a copy of this message
Commit: 2912428f238670ac9d1359ea4ea2bebaa70d17b1 Author: Ben Ramsey <ben@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(" ", "&nbsp;", $d); }

« previous php.webmaster (#26140) next »