Project

General

Profile

Bug #5220

Date timezone warning spewing out on factory defaults

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

Status:
Resolved
Priority:
Normal
Category:
Operating System
Target version:
Start date:
10/01/2015
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.3
Affected Architecture:

Description

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/globals.inc on line 64

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

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 3 years ago

Fix #5220, setup PHP timezone:

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

History

#1 Updated by Renato Botelho over 3 years ago

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

#2 Updated by Chris Buechler over 3 years ago

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

#3 Updated by Jim Thompson over 3 years ago

  • Assignee set to Chris Buechler

#4 Updated by Chris Buechler over 3 years ago

  • Status changed from Feedback to Resolved

fixed

Also available in: Atom PDF