php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53494 date() warning - no php.ini timezone setting
Submitted: 2010-12-08 01:48 UTC Modified: 2010-12-08 03:40 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: mike dot christen at mediaclubroyale dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.3 OS: linux, mac
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mike dot christen at mediaclubroyale dot com
New email:
PHP Version: OS:

 

 [2010-12-08 01:48 UTC] mike dot christen at mediaclubroyale dot com
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.


Patches

bandaid.txt (last revision 2010-12-08 00:58 UTC by mike dot christen at mediaclubroyale dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-08 03:40 UTC] dtajchreber@php.net
-Status: Open +Status: Bogus
 [2010-12-08 03:40 UTC] dtajchreber@php.net
See bug #39142.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Nov 29 02:00:01 2025 UTC