Bug #15194: date("m-d-y H:m:s", $timestamp) doesn't jive with system time

From: Date: Thu, 24 Jan 2002 05:19:17 +0000
Subject: Bug #15194: date("m-d-y H:m:s", $timestamp) doesn't jive with system time
Groups: php.dev 
Request: Send a blank email to php-dev+get-77956@lists.php.net to get a copy of this message
From:             emetsger@jhu.edu
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



Thread (1 message)

  • emetsger at jhu dot edu
« previous php.dev (#77956) next »