On Thu, Jun 19, 2008 at 6:07 PM, Wade Smart <[EMAIL PROTECTED]> wrote:
> The time zone on a shared server Im working on is two hours behind where Im
> located. I found the php function to change it but Im not understanding it.

Hello!
I am in Brazil, and usually do the following in my sites hosted at
foreign hosting companies:

setlocale(LC_TIME, "pt_BR.ISO8859-1");
date_default_timezone_set("America/Sao_Paulo");


The first will help get month and day names correctly, and the second
sets the timezone to that of my location.
Works fine for me. Also, if you happen to be using MySQL, you might
also want to issue the following query:

SET time_zone = 'America/Sao_Paulo';

This will get the correct timezone in the database.

-- 
Bruno Lustosa <[EMAIL PROTECTED]>
ZCE - Zend Certified Engineer - PHP!
http://www.lustosa.net/

Reply via email to