php - Running code igniter, several sites, one server, different timezones? -


i using code igniter power our site, not using code igniter date library (just default php date),

we have several, sites on same server,

they reside in

www-nz
www-au
www-us

because these sites use same php.ini cannot use date.timezone.

so thinking, sweet as, ill use .htaccess setenv tz location e.g pacific/auckland

but having no effect, have feeling code igniter might resetting timezone somewhere...

anyone have solution?

date_default_timezone_set() place top of index.php files in codeigniter. i've learned setting utc , making time zone conversions on client side save lot of headaches :)


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -