How do you change the timezone? |
Is there any Codeigniter way to change the entire website time zone?
Thanks for your time :=)
Have you tried with htaccess?
http://www.htaccess-guide.com/setting-server-timezone/
Or use php's date_default_timezone_set() as the very first line of index.php. That will work using any webserver because it's at the php level, while htaccess only works with apache webservers.
http://php.net/manual/en/function.date-d...ne-set.php
(07-19-2015, 09:46 AM)rakibtg Wrote: Is there any Codeigniter way to change the entire website time zone? I find that for changing the default time zone is best to add this Code: date_default_timezone_set('Australia/Queensland'); On to the config.php file Example I use Country/State PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Keep in mind that you may also need to change mysql's timezone if you are using MySQL.
|
Welcome Guest, Not a member yet? Register Sign In |