ID:               32015
 Comment by:       alex at iweconsulting dot net
 Reported By:      rj at meadowbrook dot net
 Status:           No Feedback
 Bug Type:         Date/time related
 Operating System: Linux
 PHP Version:      5.0.2
 New Comment:

I'm testing a script that I wrote on a remote server.
My developement environment is on a Windows Platform with PHP 5.2.4
The production environment is a Unix PHP 5.2.5

The piece of script that does not work is the following:

$date = '11 May 2008';
echo $date;
echo "<br />";
$date = strtotime($date);
echo $date;
echo "<br />";
$date = date('d-M-Y H:i:s', $date);
echo $date;

On Windows PHP 5.2.4 the output is

11 May 2008
1210467600
11-May-2008 00:00:00

On Unix PHP 5.2.5 it is

11 May 2008
1210478400
11-May-2008 00:00:00

The two timestamps are different, even if the date() function returns
the same result and the input string is the same.


Previous Comments:
------------------------------------------------------------------------

[2005-03-20 18:09:28] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2005-02-18 09:06:19] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

------------------------------------------------------------------------

[2005-02-18 04:09:34] rj at meadowbrook dot net

Description:
------------
The exact same function produces two different timestamp results:

PHP 4.3.2
strtotime('12/01/04 9:00 AM');
produces 1101909600

PHP 5.0.2
strtotime('12/01/04 9:00 AM');
produces 1101909622

Any combination produces a result 22 seconds less in 5.0.2 that the
result in 4.3.2

Reproduce code:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32015&edit=1

Reply via email to