From:             rm at duxx dot nl
Operating system: Winnt4
PHP version:      4.3.4
PHP Bug Type:     MySQL related
Bug description:  one timestamp/two times

Description:
------------

In MYSQL this was the result of
 SELECT CURDATE(), CURTIME(), UNIX_TIMESTAMP()

+------------+-----------+------------------+
| CURDATE()  | CURTIME() | UNIX_TIMESTAMP() |
+------------+-----------+------------------+
| 2003-11-13 | 10:38:34  |       1068716314 |
+------------+-----------+------------------+


Under PHP however the result of
 echo date("m.d.Y-h:m:s", 1068716314); // the same timestamp

I get
 11.13.2003-09:11:34


So you can see 10:38:34 and 9:11:34 for the same timestamp.

Now one hour could be explained because of a the timzone of +1, where
where did those 27 minutes go ?

(I didn't find this on version 4.1.3)

Reproduce code:
---------------
 

Expected result:
----------------
 

Actual result:
--------------
 

-- 
Edit bug report at http://bugs.php.net/?id=26236&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26236&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26236&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26236&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26236&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26236&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26236&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26236&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26236&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26236&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26236&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26236&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26236&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26236&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26236&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26236&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26236&r=float

Reply via email to