Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663018 - Please set PHP date.timezone on brambling
Summary: Please set PHP date.timezone on brambling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-07 13:02 UTC by Michael Palimaka (kensington)
Modified: 2018-11-01 12:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2018-08-07 13:02:51 UTC
I am getting lots of cron mail like this:

PHP Warning:  date(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/planet.gentoo.org/planet-gentoo/archives/planet/index.php on line 123
PHP Warning:  date(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/planet.gentoo.org/planet-gentoo/archives/universe/index.php on line 123

We could work around it in the script, but it's probably bet to set the timezone correctly in php.ini.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-08-07 13:14:33 UTC
It can also be set on the cron job command line.

This warning will be going away when we upgrade to PHP 7.1.

Yes, it is best to set the output TZ in the cli config.
Comment 2 Brian Evans (RETIRED) gentoo-dev 2018-08-07 13:59:41 UTC
Temporarily set the timezone in the cron job.  If we want a more permanent solution, the cli ini can be set.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2018-10-06 10:14:42 UTC
Thanks, planet is happy now.
Comment 4 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2018-11-01 12:25:18 UTC
looks like resolved.
Please open a new bug if you have still problems.