Welcome Guest, Not a member yet? Register   Sign In
How do you change the timezone?
#4

(07-19-2015, 09:46 AM)rakibtg Wrote: Is there any Codeigniter way to change the entire website time zone?
Thanks for your time :=)

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

defined
('BASEPATH') OR exit('No direct script access allowed');

date_default_timezone_set('Australia/Queensland');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
|   http://example.com/
|
| If this is not set then CodeIgniter will try guess the protocol, domain
| and path to your installation. However, you should always configure this
| explicitly and never rely on auto-guessing, especially in production
| environments.
|
*/
$config['base_url'] = ''
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
How do you change the timezone? - by rakibtg - 07-19-2015, 09:46 AM
RE: How do you change the timezone? - by Diederik - 07-19-2015, 10:39 AM
RE: How do you change the timezone? - by CroNiX - 07-19-2015, 11:20 AM
RE: How do you change the timezone? - by wolfgang1983 - 07-19-2015, 07:46 PM
RE: How do you change the timezone? - by skunkbad - 07-19-2015, 11:04 PM
RE: How do you change the timezone? - by rakibtg - 07-19-2015, 11:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB