From: Operating system: Windows x86 PHP version: 5.3.5 Package: Date/time related Bug Type: Feature/Change Request Bug description:date_default_timezone_set() on header
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 bug report at http://bugs.php.net/bug.php?id=53874&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53874&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53874&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53874&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53874&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53874&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53874&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53874&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53874&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53874&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53874&r=support Expected behavior: http://bugs.php.net/fix.php?id=53874&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53874&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53874&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53874&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53874&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53874&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53874&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53874&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53874&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53874&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53874&r=mysqlcfg