Edit report at http://bugs.php.net/bug.php?id=53874&edit=1
ID: 53874 Updated by: scott...@php.net Reported by: frame at dynamiccreated dot de Summary: date_default_timezone_set() on header -Status: Open +Status: Bogus Type: Feature/Change Request Package: Date/time related Operating System: Windows x86 PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: cookies are based on GMT and don't use a timezone. Previous Comments: ------------------------------------------------------------------------ [2011-01-28 23:09:41] frame at dynamiccreated dot de Description: ------------ date_default_timezone_set() does not affect any HTTP-header? For example created with setcookie(), the setting has no effect. Why is PHP given "It is not safe to rely on the system's timezone settings" on date() but not on setcookie()? So if the method is used to correct the timezone (eg. GMT to GMT+1) no header generated by PHP will regarding the changed time. Any cookie set to 1 hour expiration will fail. If this is bogus, please add a warning to setcookie() linking with date_default_timezone_set(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53874&edit=1