www.webdeveloper.com
Results 1 to 3 of 3

Thread: Timezone, PHP, relative

  1. #1
    Join Date
    Jul 2009
    Location
    UK
    Posts
    174

    Timezone, PHP, relative

    hi

    I'm in the UK. But my server is based in the US of A, Dallas, Texas. OK. I'm unsure about the date.timezone settings in php.ini. Do I set it to America or UK?



    Code:
    // London, England, Europe
    date.timezone = "Europe/London"
    date.default_latitude = 51.500181
    date.default_longitude = -0.12619
    help
    Success is the ablility to go from one failure to another without loss of enthusiasm.
    -- Sir Winston Churchill.

  2. #2
    Join Date
    Mar 2011
    Posts
    1,109
    There's no "best" setting to choose, but I would tend to leave the PHP setting at its default - in synch with the server setting (for file datestamps, etc.), unless you have a specific reason to change it for your scripts. For example, if your site is an online store where things like date of purchase are important, then it would be a good idea to use "Europe/London" so that your orders reflect your store's dates and times. So, it's up to you to choose.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Jul 2009
    Location
    UK
    Posts
    174
    Quote Originally Posted by rtrethewey View Post
    if your site is an online store where things like date of purchase are important, then it would be a good idea to use "Europe/London" so that your orders reflect your store's dates and times.
    Thanks Rick
    Success is the ablility to go from one failure to another without loss of enthusiasm.
    -- Sir Winston Churchill.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles