cvs: pearweb /public_html/bugs/include functions.inc

From: Date: Thu, 08 Jul 2004 05:50:12 +0000
Subject: cvs: pearweb /public_html/bugs/include functions.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-435@lists.php.net to get a copy of this message
danielc Thu Jul 8 01:50:12 2004 EDT Modified files: /pearweb/public_html/bugs/include functions.inc Log: * Use UTC zone for times and standardize format with rest of site. http://cvs.php.net/diff.php/pearweb/public_html/bugs/include/functions.inc?r1=1.60&r2=1.61&ty=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.60 pearweb/public_html/bugs/include/functions.inc:1.61 --- pearweb/public_html/bugs/include/functions.inc:1.60 Wed Jun 30 15:00:28 2004 +++ pearweb/public_html/bugs/include/functions.inc Thu Jul 8 01:50:12 2004 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2004 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: functions.inc,v 1.60 2004/06/30 19:00:28 danielc Exp $ + * @version $Id: functions.inc,v 1.61 2004/07/08 05:50:12 danielc Exp $ */ @@ -782,10 +782,7 @@ * @return string the formatted date */ function format_date($date) { - if (date('Y') != date('Y', $date)) { - return date('j M Y g:ia T', $date); - } - return date('j M g:ia T', $date); + return date('Y-m-d H:i', $date - date('Z', $date)) . ' UTC'; } /**

« previous php.pear.core (#435) next »