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
| SitePoint Sponsor |
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

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
Updated mod_rewrite Tutorial Article (setup, config, test & write
mod_rewrite regex w/sample code) and Code Generator
Bookmarks