#38625 [Opn->Bgs]: Default timezone not working

From: Date: Mon, 28 Aug 2006 11:26:27 +0000
Subject: #38625 [Opn->Bgs]: Default timezone not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101430@lists.php.net to get a copy of this message
ID: 38625 Updated by: tony2001@php.net Reported By: ashokmca dot g at gmail dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Windows XP PHP Version: 5.1.5 New Comment: You need to set date.timezone in your php.ini. Previous Comments: ------------------------------------------------------------------------ [2006-08-28 11:22:23] ashokmca dot g at gmail dot com Description: ------------ hello sir i use date() and time() function to get current date and time but it will give less than 5:30 as compare my current time. the timezone For my pc is GMT+5:30 but in php UTC i cant resolve this please help me Reproduce code: --------------- <? echo date("F j, Y, h:i:s a", time()); ?> Expected result: ---------------- August 28, 2006, 4:44:09 pm Actual result: -------------- August 28, 2006, 11:16:25 am ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38625&edit=1

« previous php.bugs (#101430) next »