PHP Warning: date_default_timezone_get():

kcossabo
Posts: 36
Joined: Sat Mar 05, 2011 11:42 am

PHP Warning: date_default_timezone_get():

Postby kcossabo » Mon Mar 07, 2011 6:01 pm

I get the below when ever I issue a greyhole command?

[root@cossaboon kcossabo]# greyhole --view-queue
PHP Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /usr/bin/greyhole on line 32


Is there a fix?

User avatar
lrevxl
Posts: 82
Joined: Fri Mar 04, 2011 7:23 pm
Location: Chicago, IL, USA
Contact:

Re: PHP Warning: date_default_timezone_get():

Postby lrevxl » Mon Mar 07, 2011 6:49 pm

This error is pretty harmless, basically Greyhole doesn't set an explicit timezone (nor would it be wise to do so since people from all different timezones use / may use it). So you can either set this explicitly in the Greyhole file (not recommended) or set it in your php.ini file for the system (probably the better option). The below link discusses briefly how to add a timezone to your php config:

http://online-source.net/2011/02/05/war ... e-date_de/

kcossabo
Posts: 36
Joined: Sat Mar 05, 2011 11:42 am

Re: PHP Warning: date_default_timezone_get():

Postby kcossabo » Tue Mar 08, 2011 6:16 am

thank you

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: PHP Warning: date_default_timezone_get():

Postby gboudreau » Wed Mar 09, 2011 5:39 am

- Guillaume Boudreau

kcossabo
Posts: 36
Joined: Sat Mar 05, 2011 11:42 am

Re: PHP Warning: date_default_timezone_get():

Postby kcossabo » Wed Mar 09, 2011 6:32 am

Thank you

Who is online

Users browsing this forum: No registered users and 21 guests