f you will read GMT/UTC time , local machine time and compare these time with the web server time. You may get yourself clear on these. If not clear, just deduct 12*3600 sec from time, to get the time you need.
[SOLVED]
I'm stuck using unixtime on this database.
Anyway, part of this script inserts a unixtimestamp into the db, only the timestamp is the 12 hours behind. Any ideas?
The results show the opposite am/pmPHP Code:
elseif ($now < ($RecDate + 43200)):
$nextVote = $RecDate + 43200;
//$msg = "<b>". strtoupper($ACusername)."</b><br> has already voted on" . date('D \a\t h:i a',$RecDate) . "<p>You can vote again on ". date('D \a\t h:i a',$nextVote);
Last edited by prosportal; 13 Jun 2010 at 03:19 PM. Reason: Solved
f you will read GMT/UTC time , local machine time and compare these time with the web server time. You may get yourself clear on these. If not clear, just deduct 12*3600 sec from time, to get the time you need.