Results 1 to 2 of 2

Thread: [ SOLVED ] - My am/pm is reversed

  1. #1
    Join Date
    Feb 2010
    Posts
    29

    [ SOLVED ] - My am/pm is reversed

    [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?

    PHP 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); 
    The results show the opposite am/pm
    Last edited by prosportal; 13 Jun 2010 at 03:19 PM. Reason: Solved

  2. #2
    Join Date
    Mar 2010
    Posts
    18
    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.

Similar Threads

  1. Get your all issues solved from here
    By mac_jsn in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 01 Aug 2007, 05:37 PM

Tags for this Thread

Posting Permissions

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