shift time...

shift time...

am 06.12.2007 19:58:51 von lukk3tt0

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"); ???

Thanks!

Re: shift time...

am 06.12.2007 21:23:08 von Shion

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

Re: shift time...

am 07.12.2007 19:38:22 von lukk3tt0

Il Thu, 06 Dec 2007 21:23:08 +0100, J.O. Aho ha scritto:


>
> date_default_timezone_set("Europe/Rome");

Tnx a lot!!!

Re: shift time...

am 07.12.2007 20:18:58 von unknown

Post removed (X-No-Archive: yes)