Project

General

Profile

Bug #1067

PHP Time Zone Issue

Added by bigfoot65 about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
08/04/2013
Due date:
% Done:

0%


Description

The timezone is not being set in the /etc/php.ini file. This can be corrected by adding the following line to read:

date.timezone="America/Chicago"

or whatever timezone is needed. This should be set automatically by the installer.

History

#1 Updated by bigfoot65 about 7 years ago

  • Target version set to amahi-7-0

#2 Updated by cpg about 7 years ago

This is the error

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.

A simple app to test this with is Claroline.

#3 Updated by cpg about 7 years ago

  • Status changed from New to Feedback
  • Assignee set to bigfoot65

fixed in amahi 7.1. please test and if it works close it.

#4 Updated by cpg about 7 years ago

  • Status changed from Feedback to Closed
  • Assignee changed from bigfoot65 to cpg
  • Target version changed from amahi-7-0 to amahi-7-1

This is reportedly working (via private email) in the 7.1 iso just released today. Closing.

Unfortunately, there are the following caveats:
  • Users who installed Amahi with the 7.0 ISO will permanently have this issue
  • There are two work-arounds:
    • Manually setting the timezone in /etc/php.ini (see the supported timezones)
    • Running the hda-php-zone-change script included in new updates of hda-ctl (5.1 or greater)

Also available in: Atom