SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change server time

    I have a site hosted on a shared hosting which uses a time zone GMT +1 different from the server time. I will like to know if there is any .htaccess script that can handle that or other method to solve it

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,692
    Mentioned
    20 Post(s)
    Tagged
    3 Thread(s)
    m2k1,

    PHP5 has excellent timezone handling - but you must have the latest and greatest to keep up with the different countries changing their DST dates! Personally, I use GMT and calculate the DST changeover dates to determine the GST offset THEN apply that to get the current time (I'm hosted in TX but need, more often than not, NZ time).

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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