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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby Sylver Cheetah 53 » 19. December 2009 14:41

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:
www.serialenet.ro
Free your mind!
User avatar
Sylver Cheetah 53
 
Posts: 14
Joined: 21. December 2008 13:26
Location: Milky Way
Operating System: Windows XP Professional SP3

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

Postby Sylver Cheetah 53 » 20. December 2009 14:08

How come no reply, ha? :x
www.serialenet.ro
Free your mind!
User avatar
Sylver Cheetah 53
 
Posts: 14
Joined: 21. December 2008 13:26
Location: Milky Way
Operating System: Windows XP Professional SP3

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

Postby Altrea » 20. December 2009 23:30

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8287
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby Sylver Cheetah 53 » 20. December 2009 23:40

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. :?
www.serialenet.ro
Free your mind!
User avatar
Sylver Cheetah 53
 
Posts: 14
Joined: 21. December 2008 13:26
Location: Milky Way
Operating System: Windows XP Professional SP3

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

Postby Altrea » 21. December 2009 12:46

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 :) )
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8287
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby Sylver Cheetah 53 » 21. December 2009 14:25

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:
www.serialenet.ro
Free your mind!
User avatar
Sylver Cheetah 53
 
Posts: 14
Joined: 21. December 2008 13:26
Location: Milky Way
Operating System: Windows XP Professional SP3

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

Postby Altrea » 21. December 2009 14:35

execute your setup_xampp.bat file in your xampplite directory up to the end and check if your messages are gone
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8287
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

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

Postby Sylver Cheetah 53 » 21. December 2009 15:15

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. :?
www.serialenet.ro
Free your mind!
User avatar
Sylver Cheetah 53
 
Posts: 14
Joined: 21. December 2008 13:26
Location: Milky Way
Operating System: Windows XP Professional SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 64 guests