LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@SPeed_FANat1c
The link you provided is for CodeIgniter. Unless you created a code using it then you need to put it in the Framework or another words put in the folder of your destination.
I don't think it will work if you are using the code for something else it will only work on CodeIgniter
o then I need to select by full name of zone.
Correct
LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@SPeed_FANat1c
I am using codeigniter.
OK, Then you really don't need to used Postgre time zone at all.
You know you never mention Codeigniter in the beginning.
What is your timezone?
To used Codeigniter you can do this:
$this->load->helper('date');
$now = time();
$timestamp = '1140153693';
$timezone = 'UTC+2';
$daylight_saving = TRUE;
echo gmt_to_local($now, $timestamp, $timezone, $daylight_saving);
There is a Timezone Reference that you can choose from.
Codeigniter has a different way of using date() function.
LastMitch
Industrious Poster
4,165 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
Question Answered as of 3 Months Ago by
LastMitch