[dev] Re: [cvs] commit: jonah/lib htmlgen.php
Jan Schneider
janmailing@gmx.de
Mon, 17 Sep 2001 17:57:30 +0200
Zitat von Chuck Hagenbuch <chuck@horde.org>:
> Quoting Jan Schneider <janmailing@gmx.de>:
>
> > In this case (LinuxToday) the modification date is quite a nice format:
> "Sep
> > 17, 2001, 13:02:51" but strtotime is obviously not able to parse it
> > correctly, it always returns -1. Since this is an already human readable
> > format there's no need to do a date('...',strtotime()).
>
> Hmm. Are there any standards about the date format in the feeds? Maybe we
I don't think so. The feeds don't even provide all fields, so they probably
don't care too much about standards.
> should only pass it through unchanged if strtotime returns -1 ?
The user comments in the php manual makes me think that this function doesn't
work very reliable so we should only use it if we know that a certain time
field has a format that works.
Jan.