Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Displaying different time?

    Hi there,

    I am really struggling with this one, i need to show the time on a site i am working on in 2 formats.

    The UK time and the time in Italy or even the surfers time and the time in italy.

    Any ideas or help would be greatly appreciated, as everything i have tried has failed miserably.

    Paul

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    TRy this
    PHP Code:
    putenv("TZ=Europe/Italy" );
    echo 
    date("H:i"); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •