Commit:    6dd04a38fe743595be8c69406da160af2e593653
Author:    Ben Ramsey <[email protected]>         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(" ", "&nbsp;", $d);
 }


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to