Page 1 of 1

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

PostPosted: 19. December 2009 14:41
by Sylver Cheetah 53
I constantly get this annoying message:
Code: Select all
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/Helsinki' for '2.0/no DST' instead in C:\xampplite\htdocs\test\includes\template.php on line 2101

What's the problem? Why does this message apearing over & over again? Why it does not just leave me alone? :roll:

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

PostPosted: 20. December 2009 14:08
by Sylver Cheetah 53
How come no reply, ha? :x

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

PostPosted: 20. December 2009 23:30
by Altrea
Which XAMPP Version do you use?
Can be an important informations if you ask us for help.

Everything you should know is standing in this message.
It seems that you haven't set a (valid) default timezone in your php.ini file or your script (php function date_default_timezone_set()).

You should do this before you use relative date/time functions like date(), etc.

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

PostPosted: 20. December 2009 23:40
by Sylver Cheetah 53
Hi and thanks for the reply! You are very kind. :wink:

I am using XAMPP Lite 1.7.2. I only use phpBB 2.0.23 forums. I have 4 or 5. :)
So the problem is with my XAMPP installation or my forums? I don't get it. :?

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

PostPosted: 21. December 2009 12:46
by Altrea
How do you install your xampplite?
Have you read the readme_en.txt file and follow the quick installation?

( Hint: Especially the part where you should execute the setup_xampp.bat file :) )

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

PostPosted: 21. December 2009 14:25
by Sylver Cheetah 53
I don't remember how I installed it. Probably, the usual way: next, next, finish :lol:
Anyway, I can't really tell if there's a problem with my XAMPP installation, wich I wouldn't care that much, or with my forums. Two of my forums are also on-line, so I would like them to be bug-free. :wink:

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

PostPosted: 21. December 2009 14:35
by Altrea
execute your setup_xampp.bat file in your xampplite directory up to the end and check if your messages are gone

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

PostPosted: 21. December 2009 15:15
by Sylver Cheetah 53
Thanks you, Altrea. You were the only one interested in my problem. Now my problem is solved, thanks to you. It is a nice thing, helping people out. :wink:
I didn't know what return is supposed to be (press <return>...), so I pressed a lot of buttons, but I gues it was ENTER, after all. :?