From: Operating system: linux, mac PHP version: 5.3.3 Package: *General Issues Bug Type: Bug Bug description:date() warning - no php.ini timezone setting
Description: ------------ It is not safe to rely on the system's timezone settings why the heck not? every other software relies on server timezone settings, why not yours -- so you've downgraded a perfectly fine running php program now to kick out an ugly warning, ruining everybody's php installs for the php programs. BACKWARDLY COMPATIBLE, PEOPLE. DON'T CHANGE SOMETHING, UNLESS IT'S AN IMPROVEMENT. Yes, I know you can set the timezone setting in php.ini, BUT NOT EVERY USER IS A SYSADMIN. GET A LIFE. Test script: --------------- <?php date(); ?> Expected result: ---------------- I want the blooming date, not a warning you don't know what timezone to use -- if there is no timezone - just give me the system time. -- Edit bug report at http://bugs.php.net/bug.php?id=53494&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53494&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53494&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53494&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53494&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53494&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53494&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53494&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53494&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53494&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53494&r=support Expected behavior: http://bugs.php.net/fix.php?id=53494&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53494&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53494&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53494&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53494&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53494&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53494&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53494&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53494&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53494&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53494&r=mysqlcfg