Bug 16937

Summary: /usr/share/php-apcu/index.php of package php-apcu-admin use deprecated date() => error log fills up
Product: Mageia Reporter: Morgan Leijström <fri>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal    
Version: 5   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: php-apcu-4.0.7-1.mga5.src.rpm CVE:
Status comment:

Description Morgan Leijström 2015-10-11 03:45:50 CEST
Description of problem:  /usr/share/php-apcu/index.php contain calls to deprecated date() function, so php-errors.log fills up with error messages like 

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 /usr/share/php-apcu/index.php on line 782

(While I am runing owncloud)

There are a few more lines in that file, containing date(


Version-Release number of selected component (if applicable):
Source RPM  : php-apcu-4.0.7-1.mga5.src.rpm
package : php-apcu-admin

Reproducible: 

Steps to Reproduce:
Comment 1 Samuel Verschelde 2015-10-12 09:55:59 CEST
It's not a problem in php-apcu-admin. date() is not deprecated. Since PHP 5.3 you are required to set your timezone in /etc/php.ini, otherwise this message shows up.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 2 Morgan Leijström 2015-10-12 18:18:34 CEST
OOPS thanks.  Added it to https://wiki.mageia.org/en/OwnCloud#Configure_php_timezone