RE: [PHP-DB] timestamp
| From: | Ford, Mike | Date: | Tue, 01 Feb 2005 10:04:54 +0000 |
| Subject: | RE: [PHP-DB] timestamp | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-38414@lists.php.net to get a copy of this message | ||
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
> -----Original Message-----
> From: Balwant Singh [mailto:balwantsingh@indoasian.com]
> Sent: 01 February 2005 08:08
>
> on echoing $timestamp i m getting "Fri Jan 28 19:53:09 2005"
> but on echoing $date i m getting 1970-01-01.
> also i m getting full info. by phpinfo()
>
> i m using php 4.2.2 , apache 2.0 and rad hat 9.
The Change Log includes this line for version 4.3.3:
"Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format). (Ilia)"
So I guess you need at least PHP 4.3.3 for this to work correctly for you.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services, JG125, James
Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS,
LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211