+ Reply to Thread
Results 1 to 2 of 2

Thread: Changing timezones.

  1. #1
    shys_aelaes26 is offline x10Hosting Member shys_aelaes26 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    32

    Changing timezones.

    I use the following function <?php echo date('H:i:s'); ?>, which currently results in 15:08, whilst at my place it's 22:08.
    Is it possible to add a php.ini file to the directory so it sets all times at GMT+1 ?

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Changing timezones.

    There's only one php.ini per host, so it can't be edited for the needs of just one user. Use date_default_timezone_set. in your initialization script.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. Changing URL.. how?
    By Lyubomir in forum Free Hosting
    Replies: 1
    Last Post: 07-14-2008, 10:48 AM
  2. changing dns
    By tern.1886 in forum Free Hosting
    Replies: 4
    Last Post: 06-11-2008, 12:57 PM
  3. Ad's not changing.
    By Archkronos in forum Free Hosting
    Replies: 4
    Last Post: 08-01-2007, 01:15 PM
  4. Changing the....
    By dsfreak in forum Off Topic
    Replies: 6
    Last Post: 03-21-2006, 10:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers