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!
I have this bit of code on one of my pages, it works although it echos back the time of the timezone that the server is on, whats the easiest way to adjust for my timezone with is three hours ahead of this time? WST -> EST
I was going to say that calling date_default_timezone_set() in your script is the easiest way, but maybe not the best, but before I finished writing this, I decided that all of these options are pretty easy.
You can use: php_value date.timezone America/New_York in a .htaccess file.
Some hosts will parse php.ini files when they are inside the web root ( public_html or www ) usually. I'm not sure if this works for files contained in subdirectories.
If your site uses a common config file included in all pages, you can call date_default_timezone_set() in it.