Re: cvs: pear /PHP_Compat/Compat/Constant DATE.php
| From: | Hannes Magnusson | Date: | Fri, 17 Mar 2006 13:54:09 +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-39152@lists.php.net to get a copy of this message | ||
As of PHP5.1.3 DATE_ATOM & DATE_W3C will be fixed.
The timezone offsets have colon in between now.
-Hannes
Index: DATE.php
===================================================================
RCS file: /repository/pear/PHP_Compat/Compat/Constant/DATE.php,v
retrieving revision 1.1
diff -u -r1.1 DATE.php
--- DATE.php 17 Mar 2006 07:15:41 -0000 1.1
+++ DATE.php 17 Mar 2006 13:50:02 -0000
@@ -29,7 +29,7 @@
* @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
+?>
On 3/17/06, Aidan Lister <aidan@php.net> wrote:
> aidan Fri Mar 17 07:15:42 2006 UTC
>
> Added files:
> /pear/PHP_Compat/Compat/Constant DATE.php
> Log:
> Initial commit
>
>
>
> http://cvs.php.net/viewcvs.cgi/pear/PHP_Compat/Compat/Constant/DATE.php?view=markup&rev=1.1
> Index: pear/PHP_Compat/Compat/Constant/DATE.php
> +++ pear/PHP_Compat/Compat/Constant/DATE.php
> <?php
> // +----------------------------------------------------------------------+
> // | PHP Version 4 |
> // +----------------------------------------------------------------------+
> // | Copyright (c) 1997-2004 The PHP Group |
> // +----------------------------------------------------------------------+
> // | This source file is subject to version 3.0 of the PHP license, |
> // | that is bundled with this package in the file LICENSE, and is |
> // | available at through the world-wide-web at |
> // | http://www.php.net/license/3_0.txt.
> |
> // | If you did not receive a copy of the PHP license and are unable to |
> // | obtain it through the world-wide-web, please send a note to |
> // | license@php.net so we can mail you a copy immediately. |
> // +----------------------------------------------------------------------+
> // | Authors: Rhett Waldock <rwaldock@gmail.com> |
> // +----------------------------------------------------------------------+
> //
> // $Id: DATE.php,v 1.1 2006/03/17 07:15:41 aidan Exp $
>
>
> /**
> * Replicate datetime constants
> *
> * @category PHP
> * @package PHP_Compat
> * @link http://php.net/manual/en/ref.datetime.php
> * @author Rhett Waldock <rwaldock@gmail.com>
> * @version $Revision: 1.1 $
> * @since PHP 5.1.1
> */
> if (!defined('DATE_ATOM')) {
> define('DATE_ATOM', 'Y-m-d\TH:i:sO');
> }
>
> if (!defined('DATE_COOKIE')) {
> define('DATE_COOKIE', 'D, d M Y H:i:s T');
> }
>
> if (!defined('DATE_ISO8601')) {
> define('DATE_ISO8601', 'Y-m-d\TH:i:sO');
> }
>
> if (!defined('DATE_RFC822')) {
> define('DATE_RFC822', 'D, d M Y H:i:s T');
> }
>
> if (!defined('DATE_RFC850')) {
> define('DATE_RFC850', 'l, d-M-y H:i:s T');
> }
>
> if (!defined('DATE_RFC1036')) {
> define('DATE_RFC1036', 'l, d-M-y H:i:s T');
> }
>
> if (!defined('DATE_RFC1123')) {
> define('DATE_RFC1123', 'D, d M Y H:i:s T');
> }
>
> if (!defined('DATE_RFC2822')) {
> define('DATE_RFC2822', 'D, d M Y H:i:s O');
> }
>
> if (!defined('DATE_RSS')) {
> define('DATE_RSS', 'D, d M Y H:i:s T');
> }
>
> if (!defined('DATE_W3C')) {
> define('DATE_W3C', 'Y-m-d\TH:i:sO');
> }
>
> ?>
>
> --
> PEAR CVS Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>