I need to use date functine in php but the time zone of the server is not correct for me. How can I change it?
I need to use date functine in php but the time zone of the server is not correct for me. How can I change it?
A more practical solution would be setting it in a php.ini file in public_html if you have fastcgi enabled, or in a php.ini file in each directory that needs to be modified, rather than every php script.
http://php.net/timezonesCode:date.timezone = "America/New_York"
I have not enabled fastcig, but I can edit the php.ini file, I have search for the line "date.timezone" but I can not find this line. Do you mean I should add an addition line date.timezone = "America/New_York" into the php.ini file?
Exactly. FYI, the php.ini file is located in your public_html directory.
redsox9 - Go Red Sox!!! 2004 and 2007 World Series Champions!
Visit FenwayFanatics.com, home to Boston Red Sox baseball fans everywhere... now on Facebook and Twitter!
can we not change the timezone in cpanel?
If that's possible, I don't see it anywhere on the cPanel interface. Of course, I also don't see any mention of the current time.
redsox9 - Go Red Sox!!! 2004 and 2007 World Series Champions!
Visit FenwayFanatics.com, home to Boston Red Sox baseball fans everywhere... now on Facebook and Twitter!
I, too, am trying to locate my php.ini file. I have recently enabled FastCGI, and attempted to "Install php.ini master file" through the PHP Config Panel. It claimed success, but I don't see the php.ini file anywhere in public_html. If I create my own php.ini and place it there, will it only override settings that I mention, or do I need to recreate the entire php.ini file?
Looks like I found an answer to my question @ http://bluehostforums.com/showthread...hlight=php.ini
and that the directives I put in that file will be added to existing php.ini settings.
I followed the instructions to edit my php.ini. I dont think I have fastCGI enabled. I never enabled it myself and it does not appear in my cpanel.
My problem is when I go to system info in Joomla and view PHP settings from there, the change I made to date.timezone does not show. It says no value.
However if I run a script with phpinfo(); on the public_html directory it does reflect the change I made to date.timezone
Any ideas?