|
-
Jul 18th, 2007, 01:49 AM
#1
Thread Starter
Addicted Member
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
-
Jul 19th, 2007, 09:17 AM
#2
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|