ID: 33082
Updated by: [EMAIL PROTECTED]
Reported By: benjamin dot rich at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Date/time related
Operating System: Linux
PHP Version: 4.3.10
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2005-05-20 16:02:15] benjamin dot rich at gmail dot com
Description:
------------
date("B", $timestamp) will return the swatch net time for $timestamp +
the difference between local server time and BMT (net time meridian,
swiss time, GMT+1).
Reproduce code:
---------------
date("B", date());
date("B", gmdate());
Both the above return the same, correct result - they will give the
current net time. However:
$timestamp = mktime(some,GMT,date,and,time);
date("B", $timestamp);
will return the correct net time for this date/time PLUS the difference
between local server time (say, GMT-4) and BMT (GMT+1) - putting it off
(by, in this case, 5 hours).
Expected result:
----------------
date("B", $timestamp); should return the net time for this timestamp,
assuming the timestamp represents a date and time in at some arbitrary
location like GMT+0.
Actual result:
--------------
Instead, it adds an incorrect factor to the resulting net time
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33082&edit=1