RE: [PEAR-DEV] [PEAR-BUG] #445 [NEW]: Date does not handle DATE_FORMAT_ISO_EXTENDED correctly
| From: | Lukas Smith | Date: | Wed, 17 Dec 2003 18:35:47 +0000 |
| Subject: | RE: [PEAR-DEV] [PEAR-BUG] #445 [NEW]: Date does not handle DATE_FORMAT_ISO_EXTENDED correctly | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-24515@lists.php.net to get a copy of this message | ||
> From: Hartmut Holzgraefe [mailto:hartmut@php.net]
> Sent: Wednesday, December 17, 2003 1:42 PM
> mike dot carter at personalmedicaladvisor dot co dot uk wrote:
> > Description:
> > ------------
> > Passing in what looks like a valid DATE_FORMAT_ISO_EXTENDED format
> string
> > causes the Date clas to fail to parse it and manipulate its values.
> >
> ...
> > Reproduce code:
> > ---------------
> > $d="2003-12-17T10:27:03Z";
> ...
>
> Does the Date class use strtotime() for conversions?
>
> I strtotime() support for this format to HEAD recently
> so it is only available in PHP 5 CVS and snapshots but
> not in any release version *including* 5.0.0rc2 ...
No it doesnt.
The main purpose of PEAR::Date is to fix the limitations of the php
functions by sacrificing (a bit of) performance. So it has its own custom
regexp.
Regards,
Lukas