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

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?

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';


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