Therefore you must have an overloadable function to return the time in GMT. Where it can accept an offset or rely on the systems timezone.
To me, it seems best to just use a variable. Print out the time, then do a correct offset for it.
But for something already done, see http://us3.php.net/manual/en/function.gmdate.php
Travis
----- Original Message ----- From: "Bruno B B Magalhães" <brunobbm@xxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, January 04, 2005 5:04 AM
Subject: GMT
Hi you all,
How do you work with GMT time-zones? I mean, I´ve developed a support system, with projects, bugs, tasks, etc... but as I user date()ç,I is 6 hours late from my client´s time-zone...
And I would like to make it a little more dynamic than just put a variable in the code and add to the hour.
Regards, Bruno B B Magalhães
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php