Bug #18434 Updated: Wrong date returned by gmdate() for `U`format

From: Date: Fri, 19 Jul 2002 14:27:51 +0000
Subject: Bug #18434 Updated: Wrong date returned by gmdate() for `U`format
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14633@lists.php.net to get a copy of this message
ID: 18434 Updated by: rasmus@php.net Reported By: sitnikov@infonet.ee Status: Bogus Bug Type: Date/time related Operating System: Linux PHP Version: 4.2.1 New Comment: h:m:s format? m != minutes Previous Comments: ------------------------------------------------------------------------ [2002-07-19 08:18:58] markonen@php.net Timestamp tells the number of seconds that have passed since January 1 1970 00:00:00 GMT. It obviously doesn't care about your time zone at all. ------------------------------------------------------------------------ [2002-07-19 08:15:59] sitnikov@infonet.ee Timestamp for GTM & +3 zone equal, but h:m:s format have different value ------------------------------------------------------------------------ [2002-07-19 08:10:30] markonen@php.net I see nothing wrong. ------------------------------------------------------------------------ [2002-07-19 08:03:58] sitnikov@infonet.ee <? echo gmdate ('H:i:s U (O,Z)'); echo "<br>\n"; echo date ('H:i:s U (O,Z)'); ?> Output: 12:01:21 1027080081 (+0000,0) 15:01:21 1027080081 (+0300,10800) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18434&edit=1

« previous php.bugs (#14633) next »