Bug #5220

Date timezone warning spewing out on factory defaults

Added by Phillip Davis over 4 years ago. Updated over 4 years ago.

Operating System
Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
Affected Architecture:


2.3-ALPHA built on Thu Oct 01 01:24:49 CDT 2015

After doing reset to factory defaults, this sort of timezone messages spew out on the console and the top of GUI pages:
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 /etc/inc/ on line 64

Call Stack:
0.0159 113152 1. {main}() /etc/ecl.php:0
0.0385 113532 2. require_once('/etc/inc/') /etc/ecl.php:33
0.0475 115864 3. date() /etc/inc/

then after setting the timezone explicitly from General Setup and rebooting it seems happier - but I still get it in the dashboard System widget where it tries to show the update status.

I guess this is related to where Renato just recently changed the way the timezone is first set up.

timezone.txt (8.19 KB) timezone.txt Phillip Davis, 10/01/2015 05:28 AM

Associated revisions

Revision 339b8893 (diff)
Added by Renato Botelho over 4 years ago

Fix #5220, setup PHP timezone:

- Get defined zoneinfo in the following order:
- /var/db/zoneinfo
- /cf/conf/config.xml
- /etc/inc/
- /etc/inc/


#1 Updated by Renato Botelho over 4 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Chris Buechler over 4 years ago

  • Project changed from Bootstrap to pfSense
  • Category set to Operating System

#3 Updated by Jim Thompson over 4 years ago

  • Assignee set to Chris Buechler

#4 Updated by Chris Buechler over 4 years ago

  • Status changed from Feedback to Resolved


Also available in: Atom PDF