Results 1 to 2 of 2

Thread: how to changthe server date, time to local date and time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    164

    how to changthe server date, time to local date and time

    i can change the time by add the hour difference, but how the date be changed! help!

    $nowtime=time();
    $timelogin=strftime('%H:%M:%S',time() + 60*60*8);// add 8 hours as local time

  2. #2
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: how to changthe server date, time to local date and time

    PHP Code:
    $hr strtotime('+1 hour');
    date('d/m/Y H:i:s'$hr); 
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

Posting Permissions

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



Click Here to Expand Forum to Full Width