what does this mean?

Warning: date() [function.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/London’ for ‘BST/1.0/DST’ instead in /home/nomaster/public_html/shopping/includes/languages/english.php on line 248

I’ve no idea - really.

Any help welcome.

Jude x

Holy crap, that’s one of the most descriptive error message in history and you don’t know what it means?

You are required to use the date.timezone setting or the date_default_timezone_set() function.

http://us2.php.net/manual/en/datetime.configuration.php#ini.date.timezone
http://us2.php.net/date_default_timezone_set

Holy crap indeed! Well I understand what it’s telling me, but don’t know how to fix it as there is nothing on line 248 of the said file that seems useful.
Anyway, thanks for your links - hopefully theyll make evrything clearer.
Will let you know.

it means you do not have a timezone set in php, the only place it can see the time is your system time - the clock on your computer - and it’s saying “hell no!” i aint trusting that!!

so, if you have indeed set it, it’s mis-typed - so it’s not set.
or if you haven’t set it, it’s asking you kindly to set it like so - place this line at the top of your script:
[php]date_default_timezone_set(‘Europe/London’) ; // using London timezone.[/php]

You can find a complete list of timezones here

Easy peasy! ;D

Sorry for my ongoing dimness but which file do I add this code to?
Is it here? /home/nomaster/public_html/shopping/includes/languages/english.php on line 248

Thanks.
Jude x

without trying to confuse you, that may - or may not - be the correct place to put it.

It looks to me like your using some kind of system/framework that uses includes files.
I suggest you look for something along the lines of config.php - or similar - have read through that file see if you can see the timezone set anywhere, if not place it at the very top of the file right after the <?php opening tag.

Hope that helps.
Red :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service