FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » local time, not server time
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: local time, not server time [message #32954 is a reply to message #32952] Sun, 06 August 2006 21:15 Go to previous message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma:
Member
ooops. Try this one.

<?php
$date=date(U); // format date for calculation in seconds
//print ("$date");  //if you want to see the date format now
$hourdiff = "1"; //change the server time plus one hour
$timeadjust = ($hourdiff * 60 * 60); //this is how to calc it
$adjtime = date("g:ia", $date + $timeadjust); //format display
print ("$adjtime");  //print the adjusted time
?>

This one works!


kenjb
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Forced downgrade of PHP
Next Topic: php/sql design help
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 14:30:47 GMT 2024

Total time taken to generate the page: 0.05408 seconds