From:             [EMAIL PROTECTED]
Operating system: Solaris 7
PHP version:      4.1.1
PHP Bug Type:     Date/time related
Bug description:  date("m-d-y H:m:s", $timestamp) doesn't jive with system time

calling date("m-d-y H:m:s", $timestamp) doesn't always produce the correct
system date.

The linked page and source demonstrate this problem.

The date is gathered from three different sources on the system: the date
command, the date within mysql, and the php time() function call.

The three different sources all produce identical timestamps.  However,
when I call the date() function with the above timestamp, the system date
will not match the formatted date returned by date().

I saw this problem orginally in my 4.0.6 install, and just upgraded to
4.1.1 and my test page still exhibits the same behavior.

The page is located at: http://esm.mse.jhu.edu/cms/test/testdate.php
The source is at:
http://esm.mse.jhu.edu/cms/test/testdate.phps
My phpinfo page is at:
http://esm.mse.jhu.edu/cms/test/index.php

Thanks for taking a look!

Elliot Metsger
-- 
Edit bug report at: http://bugs.php.net/?id=15194&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to