I need a code for time zone

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

I need a code for time zone

Post 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.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: I need a code for time zone

Post 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
Post Reply