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. Link to comment https://forums.phpfreaks.com/topic/230073-date-time-zone/ 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. Link to comment https://forums.phpfreaks.com/topic/230073-date-time-zone/#findComment-1184915 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.