PHP Date use my time zone?

Discussion in 'PHP' started by tanyania, Jul 7, 2011.

  1. #1
    How do I make sure dates joined are all in the same time zone?

    I live in Seattle, and I want to use Pacific Time for when a user joins the site. So using date("M d, Y, h:i A") in the registration processing isn't going to do the job. How can I make sure that when a user joins, it shows up as my time zone?

    Any help is appreciated, thank you.
     
    tanyania, Jul 7, 2011 IP
  2. Kyosys

    Kyosys Peon

    Messages:
    226
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
  3. dsoft

    dsoft Greenhorn

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    try

    date_default_timezone_set('America/New York');

    Choose from this list php.net/manual/en/timezones.america.php the nearest location to Seattle
     
    dsoft, Jul 9, 2011 IP