1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to set timezone default to america/los_angeles

Discussion in 'Web Development' started by Freepls, Dec 8, 2009.

  1. Freepls

    Freepls New Member

    Joined:
    Dec 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    i know u can change it with php for a page by page basis, but i also know u can change it in the ini file(set the default timezone)
    but well i dont know how to do the ini file and im not sure if its allowed on freehosting but well..
    can someone let me know if its allowed? or
    how to make it so that whoever is viewing my site (the time is in their timezone for them)
    sees the right time it is there.
    I use Free hosting at myplus.org
     
  2. venami

    venami New Member

    Joined:
    Dec 26, 2008
    Messages:
    195
    Likes Received:
    10
    Trophy Points:
    0
    Occupation:
    Software Professional
    Location:
    India, Tamil Nadu, Cuddalore
    Home Page:
    You can set the default timezone in INI file using the "date.timezone" setting.

    For example, if you are in India, use:
    Code:
    date.timezone = "Asia/Calcutta"
    But, you have to ask the admin of myplus.org to know whether doing this allowed or not.

    Welcome to the forum :)
     
  3. venami

    venami New Member

    Joined:
    Dec 26, 2008
    Messages:
    195
    Likes Received:
    10
    Trophy Points:
    0
    Occupation:
    Software Professional
    Location:
    India, Tamil Nadu, Cuddalore
    Home Page:
    To set the timezone for los_angeles, use:
    Code:
    date.timezone = "America/Los Angeles"
     
  4. neo_vi

    neo_vi New Member

    Joined:
    Feb 1, 2008
    Messages:
    722
    Likes Received:
    15
    Trophy Points:
    0
    Occupation:
    Software engineer
    Location:
    Earth
    Home Page:
    I hope this wont work.
    Use this
    Code:
    date.timezone = "Asia/Kolkata" 
    
    [​IMG]
     
  5. venami

    venami New Member

    Joined:
    Dec 26, 2008
    Messages:
    195
    Likes Received:
    10
    Trophy Points:
    0
    Occupation:
    Software Professional
    Location:
    India, Tamil Nadu, Cuddalore
    Home Page:
    Yes, you are right neo_vi ;)
     
  6. Freepls

    Freepls New Member

    Joined:
    Dec 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    thanks all for support !
     

Share This Page