CodeIgniter Forums

Full Version: date
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

A PHP Error was encountered

Severity: Warning

Message: 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 'Europe/Paris' for '2.0/DST' instead

Filename: models/member.php

Line Number: 41

This is a real bugger in my code, it pops up with everything i do, i changed the timezone.ini in the config, added the changes in the index.php but then i get a 500 internal error back, this sucks!!

How can i fix this ????

El Forum

Hi ,

i am not clear , please can you post your code here so that it will be easy to fix your issue.


El Forum


set date.timezone in php.ini:

; Defines the default timezone used by the date functions
date.timezone = Europe/Paris

Then restart apache. See for a list of valid timezones

Or, at the top of index.php, include: