Page 1 of 1

I need a code for time zone

Posted: Wed Jul 02, 2008 5:01 am
by it2051229
I uploaded my website to this hosting service somewhere in US.. though i'm not from US and there's a problem with dates, we're one day ahead.. so i want to set the time zone using .htaccess though i dont know how
[php_value date.timezone Europe/Aberdeen] <---- got this from research though i checked php.net and havent found the function "date.timezone". Actually, I can modify my php code in such a way that i just add "+1" to the current day.. but i want things to be more accurate when it comes to time.

Re: I need a code for time zone

Posted: Wed Jul 02, 2008 9:11 am
by Eran
date.timezone is a configuration directive and not a function. You should have searched in the entire documentation instead of just functions.
http://www.php.net/timezones