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:
    http://mvenkatapathy.wordpress.com
    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:
    http://mvenkatapathy.wordpress.com
    To set the timezone for los_angeles, use:
    Code:
    date.timezone = "America/Los Angeles"
     
  4. neo_vi

    neo_vi Member

    Joined:
    Feb 1, 2008
    Messages:
    720
    Likes Received:
    16
    Trophy Points:
    18
    Occupation:
    Software engineer
    Location:
    Earth
    Home Page:
    http://computertipaday.blogspot.com
    I hope this wont work.
    Use this
    Code:
    date.timezone = "Asia/Kolkata" 
    
    [​IMG]
     
    Last edited by a moderator: Jan 21, 2017
  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:
    http://mvenkatapathy.wordpress.com
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice