PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.php > shift time...
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
shift time...

Réponse
 
LinkBack Outils de la discussion
Vieux 06/12/2007, 18h58   #1
lukk3tt0
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut shift time...

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!
  Réponse avec citation
Vieux 06/12/2007, 20h23   #2
J.O. Aho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: shift time...

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
  Réponse avec citation
Vieux 07/12/2007, 18h38   #3
lukk3tt0
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: shift time...

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


>
> date_default_timezone_set("Europe/Rome");


Tnx a lot!!!
  Réponse avec citation
Vieux 07/12/2007, 19h18   #4
Tom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: shift time...

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h40.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07916 seconds with 12 queries