It is not safe to rely on the system's timezone settings.

Help with installation and general calendar setttings

It is not safe to rely on the system's timezone settings.

Postby srelliott » Thu Jul 07, 2011 10:53 pm

When I view the calendar I see the following message repeated numerous times at the top as well as in the individual calendars:

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 'America/Los_Angeles' for '-7.0/DST' instead in C:\Apache\htdocs\lcoe\carcal\ac-includes\cal.inc.php on line 81

Line 81: $this_year = date('Y'); # current year

See attached screen shot.
Attachments
bug.JPG
bug.JPG (158.22 KiB) Viewed 3164 times
srelliott
 
Posts: 11
Joined: Thu Jul 07, 2011 10:28 pm

Re: It is not safe to rely on the system's timezone settings

Postby srelliott » Thu Jul 07, 2011 11:20 pm

Found the issue. It was in my PHP.INI file.

I added the following:

date.timezone = America/Los_Angeles

Of course use your correct Time Zone location.

Don't forget to restart Apache after saving the edit.
srelliott
 
Posts: 11
Joined: Thu Jul 07, 2011 10:28 pm

Re: It is not safe to rely on the system's timezone settings

Postby estdie » Thu Mar 01, 2012 12:58 am

i added
date_default_timezone_set('Europe/Paris');

to
call.inc and functions.inc

before the lines causing trouble
estdie
 
Posts: 2
Joined: Thu Mar 01, 2012 12:56 am


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron