|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Il Thu, 06 Dec 2007 21:23:08 +0100, J.O. Aho ha scritto:
> > date_default_timezone_set("Europe/Rome"); Tnx a lot!!! |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
On Thu, 06 Dec 2007 21:23:08 +0100, J.O. Aho wrote...
> >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. > > Thanks for the information. Tom -- NewsGuy Accounts Go Jumbo! NewsGuy Express increased from 30 to 50 GB of download capacity http://newsguy.com/overview.htm |
|
![]() |
| Outils de la discussion | |
|
|