Posted by J.O. Aho on 12/06/07 20:23
lukk3tt0 wrote:
> Des exist a way to shift the time of a server? for example my server is
> in California but my time in Italy is shifted of 9 hours;
> How do I shift the time (in italian time) if I have this function
> $data =date("j/n/Y"); ???
In the head of your scripts add
date_default_timezone_set("Europe/Rome");
Then all date/time functions after this will be using "italian" time instead
of the "pacific" time.
--
//Aho
[Back to original message]
|