Welcome Guest, Not a member yet? Register   Sign In
Calendar date different from local time
#1

[eluser]Unknown[/eluser]
Hi, I was using Calendar Class for my project. I found out that calendar's today date is different from local date by 1 day.my current timezone is GMT+8, Singapore. I think that's because of different timezone. I couldn't get a way to fix this problem. Could any suggest ideas?
#2

[eluser]Tominator[/eluser]
Hi!
I think it's because of your servers are set to GMT+0. So you may try to find in cofig.php time settings and change local to GMT, or another option.

File: /application/config/config.php
Line: 298 (CI 2.0)
Content: $config['time_reference'] = 'local';

Tom
#3

[eluser]Unknown[/eluser]
I figured it out. I change the server setting to UP8 and it worked. Thanks for your help.




Theme © iAndrew 2016 - Forum software by © MyBB