time in database in different with my current time

Discussion in 'PHP' started by chxxangie, Nov 9, 2008.

  1. #1
    
    $upload_date = date('y-m-d'); 
    $upload_time = date('G:i:s'); 
    
    PHP:
    when i check from database, i found that the time which is stored into database in not correct.

    the time in database is like below:-
    2008-11-09 08:31:09 (database data)
    2008-11-09 4:34 PM (my pc time)

    how to show the time in correctly? :confused:
     
    chxxangie, Nov 9, 2008 IP
  2. chxxangie

    chxxangie Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    any help plz???
     
    chxxangie, Nov 9, 2008 IP
  3. keiths

    keiths Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    keiths, Nov 9, 2008 IP