com web/news: Use date format that includes the timezone offset: common.php
| From: | Ben Ramsey | Date: | Thu, 06 Jul 2017 16:03:10 +0000 |
| Subject: | com web/news: Use date format that includes the timezone offset: common.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26138@lists.php.net to get a copy of this message | ||
Commit: 6dd04a38fe743595be8c69406da160af2e593653
Author: Ben Ramsey <ben@benramsey.com> Thu, 6 Jul 2017 11:03:10 -0500
Parents: 07971a439843787c5f0d039d171a5a1fe0f7500c
Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=6dd04a38fe743595be8c69406da160af2e593653
Log:
Use date format that includes the timezone offset
Changed paths:
M common.php
Diff:
diff --git a/common.php b/common.php
index 2e112a8..aa18e9b 100644
--- a/common.php
+++ b/common.php
@@ -149,6 +149,6 @@ function format_title($s, $charset) {
function format_date($d) {
$d = strtotime($d);
- $d = strftime("%c", $d);
+ $d = date('r', $d);
return str_replace(" ", " ", $d);
}