homer.favenir Posted January 23, 2009 Share Posted January 23, 2009 hi, anyone knows how to use setlocale? i want my current date to be my countrys date not my webhost's localedate BTW my webhost's date is US and my date is Philippines thanks Link to comment https://forums.phpfreaks.com/topic/142075-setlocale/ Share on other sites More sharing options...
cwarn23 Posted January 23, 2009 Share Posted January 23, 2009 I would use the ini_set command to set it to whatever timezone you have. For example, if your timezone is Antarctica/South_Pole then use the following: ini_set('date.timezone','Antarctica/South_Pole'); A full list of timezones in catagories can be found at http://au.php.net/manual/en/timezones.php Note: The links within the web address are not timezones. You need to click the links within that web address to get a full list of timezones for that area. Hope that helps. Link to comment https://forums.phpfreaks.com/topic/142075-setlocale/#findComment-744040 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.