Setting timezone globally
Posted: Tue Oct 06, 2009 10:57 pm
I would like to set my timezone globally for a certain directory. I read somewhere that the syntax to add to my php.ini to affect timezone globally is
In the meantime, I am able to affect timezon on a page by page basis by applying:
I have a form where I ask visitors to identify their timezone. Is there a way to customize date for affected users based on the timezone they specified?
. I tried it, but it didn't work. Am I not using the right syntax.;date.timezone =Asia/Jakarta
In the meantime, I am able to affect timezon on a page by page basis by applying:
Code: Select all
<?
ini_set('date.timezone', 'America/Los_Angeles');
?>