franzwarning Posted March 9, 2011 Share Posted March 9, 2011 Are time zones when calling the date function automatically decided based on where you live? Or is that something that I have to implement--Because the time is wrong according to my time zone. Quote Link to comment Share on other sites More sharing options...
salathe Posted March 9, 2011 Share Posted March 9, 2011 No the timezone is not based on where you live, but instead based on settings in PHP and/or the server's operating system. The usual way of "deciding" the default timezone is to set the date.timezone setting in the php.ini file. See the documentation for the date_default_timezone_get() function, which lists the available places (and order of preference) where the timezone can be configured. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.