WEB php time question.

Discussion in 'OT Technology' started by JEWbacca, Jul 10, 2009.

  1. JEWbacca

    JEWbacca =/

    Joined:
    May 10, 2001
    Messages:
    2,230
    Likes Received:
    0
    Location:
    Long Beach, CA
    I'm using a 'shout box' script (http://www.celerondude.com/php-shoutbox) but running into a problem w/ php not taking into account the time zone difference.

    I have set the time zone to be -7 within the configure, but still not getting the right results.

    The time reflects correctly, however when I posted something at 10:23 it reads "Posted 7 hours ago 10:23AM" instead...

    http://behindtheapple.com/shoutbox.txt
     
  2. brds

    brds OT Supporter

    Joined:
    Jun 26, 2006
    Messages:
    17,642
    Likes Received:
    13
    Location:
    Atlanta
    you could just go an subtract 7 from where it says "Posted X Hours Ago".


    That'd be the easiest thing to do.
     
  3. JEWbacca

    JEWbacca =/

    Joined:
    May 10, 2001
    Messages:
    2,230
    Likes Received:
    0
    Location:
    Long Beach, CA
    I thought of that too, but I still run into the issue of it reflecting X Hours Ago instead of "moments ago" or "minutes ago"....
     
  4. brds

    brds OT Supporter

    Joined:
    Jun 26, 2006
    Messages:
    17,642
    Likes Received:
    13
    Location:
    Atlanta
    how's the time stored in the DB?
     
  5. brds

    brds OT Supporter

    Joined:
    Jun 26, 2006
    Messages:
    17,642
    Likes Received:
    13
    Location:
    Atlanta
    We got it figured out over AIM
     
  6. crazybenf

    crazybenf Active Member

    Joined:
    Nov 14, 2001
    Messages:
    15,575
    Likes Received:
    2
    Good to know, bro.
     
  7. Browning

    Browning Active Member

    Joined:
    Feb 14, 2005
    Messages:
    89,465
    Likes Received:
    10
    that's a wrap
     
  8. Chimpa Codigo

    Chimpa Codigo Bаnned bу Ѕuреr Modulators

    Joined:
    Jan 27, 2001
    Messages:
    68,463
    Likes Received:
    21
    Location:
    Salinas, CA
    zip it up and zip it out
     
  9. brds

    brds OT Supporter

    Joined:
    Jun 26, 2006
    Messages:
    17,642
    Likes Received:
    13
    Location:
    Atlanta
    zippity do-daaa
     
  10. Pepsi1975

    Pepsi1975 Mod of the Year

    Joined:
    Jan 6, 2005
    Messages:
    47,590
    Likes Received:
    0
    Location:
    Detroit
    NOTHING LIKE NOT POSTING HOW TO FIX IT, IN CASE OTHERS HAVE THE SAME PROBLEM OR QUESTION
     

Share This Page