Req #67242 [Com]: No Timezone specified for Pakistan

From: Date: Sat, 16 Aug 2014 00:10:34 +0000
Subject: Req #67242 [Com]: No Timezone specified for Pakistan
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187145@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67242&edit=1 ID: 67242 Comment by: ppasindud at gmail dot com Reported by: farhan at askwhyweb dot com Summary: No Timezone specified for Pakistan Status: Open Type: Feature/Change Request Package: Date/time related Operating System: ANY PHP Version: 5.4.28 Block user comment: N Private report: N New Comment: Asia/Karachi Previous Comments: ------------------------------------------------------------------------ [2014-05-10 02:56:52] farhan at askwhyweb dot com Description: ------------ --- From manual page: http://www.php.net/timezones --- There is no such timezone for Pakistan (an asian country). When use Asia/Pakistan the PHP throws error saying not applicable. Quite strange but it needs to be there. Test script: --------------- date_default_timezone_set('Etc/GMT+5'); echo "The time is " . date("h:i:sa"); // Output is 14 hours above the original time. // Second case date_default_timezone_set('Asia/Pakistan'); echo "The time is " . date("h:i:sa"); // Output no error but time behind 3 hours to the original time. Expected result: ---------------- Was expecting input for 'Asia/Pakistan' in date_default_timezone_set function which is accepting the region but not giving expected current time of the region. Actual result: -------------- Not accurate/ false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67242&edit=1

« previous php.bugs (#187145) next »