Bug #16266 Updated: gmdate('U') is the same as date('U')

From: Date: Mon, 25 Mar 2002 23:44:24 +0000
Subject: Bug #16266 Updated: gmdate('U') is the same as date('U')
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3330@lists.php.net to get a copy of this message
ID: 16266 Updated by: pcornelius@managestar.com Reported By: pcornelius@managestar.com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Linux 2.4.2-2 i686 PHP Version: 4.1.1 New Comment: D'oh! So it was my expectations that were broken, not the function. Thanks to Brian Foddy for pointing out that Unix Epoch is seconds since Jan 1 1970, GMT so timezone is meaningless and date/gmdate are equivalent with 'U'. Previous Comments: ------------------------------------------------------------------------ [2002-03-25 14:06:40] pcornelius@managestar.com The gmdate() function returns the system's local time when used with the 'U' format option. I've reproduced this on a couple of Linux systems (2.4.2 and 2.4.7 i686 systems). Both of them function correctly when 'date' is called from the command line. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16266&edit=1

« previous php.bugs (#3330) next »