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
Post a Comment