Re: Got failed while calling strtotime().
| From: | Larry_Li at contractor dot amat dot com | Date: | Mon, 18 Aug 2003 03:54:47 +0000 |
| Subject: | Re: Got failed while calling strtotime(). | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159891@lists.php.net to get a copy of this message | ||
I knew it's incorrect format. But why string from NT is correct? I don't
want to change source codes on website migration.
-----------------------------------------------------------------------------------------------------------------------
To: php-general@lists.php.net
cc:
Curt Zirzow Subject: Re: [PHP] Got failed while calling
strtotime().
<curt@zirzow.dyndns.org>
08/18/03 11:45 AM
* Thus wrote Larry_Li@contractor.amat.com (Larry_Li@contractor.amat.com):
> I moved website from NT to W2K and got problem of date conversion. I'm
> using MS SQL Server. In SQL Server, the data looks like "06/09/03". I got
> "06 9 2003 12:00AM" in W2K and "Jun 9 2003 12:00AM" in NT. strtotime()
> works ok on NT, but return -1 on W2K.
>
> Any ideas? Thanks a lot!
>
"06 9 2003 12:00AM" is not a valid date string.
see:
http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php