Calendar date different from local time - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Calendar date different from local time (/showthread.php?tid=31403) |
Calendar date different from local time - El Forum - 06-17-2010 [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? Calendar date different from local time - El Forum - 06-17-2010 [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 Calendar date different from local time - El Forum - 06-18-2010 [eluser]Unknown[/eluser] I figured it out. I change the server setting to UP8 and it worked. Thanks for your help. |