Bug #15291 Updated: date() function time return problem

From: Date: Wed, 30 Jan 2002 07:20:07 +0000
Subject: Bug #15291 Updated: date() function time return problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78507@lists.php.net to get a copy of this message
ID: 15291 User updated by: omid@oztell.com Reported By: omid@oztell.com Old Status: Feedback Status: Open Bug Type: Date/time related Operating System: Debian PHP Version: 4.1.1 New Comment: I get the same result for the following: <? echo date("r"); echo gmdate("r"); ?> Previous Comments: ------------------------------------------------------------------------ [2002-01-30 02:08:57] torben@php.net Reopening; this should be set to 'Feedback' until the user confirms that the proposed fix actually works. Torben ------------------------------------------------------------------------ [2002-01-30 01:54:38] swm@php.net I cannot replicate this. I think your timezone settings may be incorrect [swm@l php-4.1.1]$ ./php <? echo date('H'); ?> 17[swm@l php-4.1.1]# date Wed Jan 30 17:51:27 EST 2002 [swm@l php-4.1.1]$ TZ=GMT ./php <? echo date('H'); ?> 06[swm@l php-4.1.1]$ gavin ------------------------------------------------------------------------ [2002-01-30 01:38:12] omid@oztell.com The date() function is returning the value as GMT time. i.e this function and gmdate() produce the same result as of php 4.1.1. This was o.k in previous versions ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15291&edit=1

« previous php.dev (#78507) next »