PDA

View Full Version : [ SOLVED ] - My am/pm is reversed



prosportal
13 Jun 2010, 03:33 PM
[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?



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);

The results show the opposite am/pm

katierosy
15 Jun 2010, 02:10 PM
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.