Re: cvs: pear /PHP_Compat/Compat/Constant DATE.php

From: Date: Fri, 17 Mar 2006 16:55:57 +0000
Subject: Re: cvs: pear /PHP_Compat/Compat/Constant DATE.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39159@lists.php.net to get a copy of this message
Woops. Allthough the patch is correct it wont work on any versions prior to 5.1.3 (the "P" format character) rendering this useless since 5.1.3 has these constants. Adding the character (P) to ext/date was the only way I found at the time to insert the colon between hour and min in the timezone offset... I still cant think of any other way of doing it... Sorry! - Hannes On 3/17/06, Aidan Lister <aidan@php.net> wrote: > aidan Fri Mar 17 15:00:27 2006 UTC > > Modified files: > /pear/PHP_Compat/Compat/Constant DATE.php > Log: > Fix dates for PHP 5.1.3, Patch by Hannes Magnusson > > > http://cvs.php.net/viewcvs.cgi/pear/PHP_Compat/Compat/Constant/DATE.php?r1=1.1&r2=1.2&diff_format=u > Index: pear/PHP_Compat/Compat/Constant/DATE.php > diff -u pear/PHP_Compat/Compat/Constant/DATE.php:1.1 > pear/PHP_Compat/Compat/Constant/DATE.php:1.2 > --- pear/PHP_Compat/Compat/Constant/DATE.php:1.1 Fri Mar 17 07:15:41 2006 > +++ pear/PHP_Compat/Compat/Constant/DATE.php Fri Mar 17 15:00:27 2006 > @@ -15,7 +15,7 @@ > // | Authors: Rhett Waldock <rwaldock@gmail.com> | > // +----------------------------------------------------------------------+ > // > -// $Id: DATE.php,v 1.1 2006/03/17 07:15:41 aidan Exp $ > +// $Id: DATE.php,v 1.2 2006/03/17 15:00:27 aidan Exp $ > > > /** > @@ -25,11 +25,11 @@ > * @package PHP_Compat > * @link http://php.net/manual/en/ref.datetime.php > * @author Rhett Waldock <rwaldock@gmail.com> > - * @version $Revision: 1.1 $ > + * @version $Revision: 1.2 $ > * @since PHP 5.1.1 > */ > if (!defined('DATE_ATOM')) { > - define('DATE_ATOM', 'Y-m-d\TH:i:sO'); > + define('DATE_ATOM', 'Y-m-d\TH:i:sP'); > } > > if (!defined('DATE_COOKIE')) { > @@ -65,7 +65,7 @@ > } > > if (!defined('DATE_W3C')) { > - define('DATE_W3C', 'Y-m-d\TH:i:sO'); > + define('DATE_W3C', 'Y-m-d\TH:i:sP'); > } > > ?> > \ No newline at end of file > > -- > PEAR CVS Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.cvs (#39159) next »