CodeIgniter Forums
Error on changing time_reference to GMT? - 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: Error on changing time_reference to GMT? (/showthread.php?tid=27822)



Error on changing time_reference to GMT? - El Forum - 02-21-2010

[eluser]octavianmh[/eluser]
Hey guys,

So I'm working on this app that requires me to track and compute timezones, etc.. and basically have decided to convert everything that comes in to GMT and run it that way.. ANYWAY, when I changed the time_reference variable in the config file, all of a sudden i get:

Quote:A PHP Error was encountered

Severity: Warning

Message: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead

Filename: libraries/Session.php

Line Number: 616

I've checked the code there, but am a bit afraid to edit the core libraries. Anyone seen this or know how I should proceed?


Error on changing time_reference to GMT? - El Forum - 02-22-2010

[eluser]octavianmh[/eluser]
Hmmm bump. No ideas? I'm running this locally, if that makes a difference?


Error on changing time_reference to GMT? - El Forum - 03-09-2010

[eluser]OliverHR[/eluser]
It is a php issue, what version are you using?


Error on changing time_reference to GMT? - El Forum - 03-09-2010

[eluser]octavianmh[/eluser]
My server is running 5.2.12.

Is that the problem?


Error on changing time_reference to GMT? - El Forum - 05-12-2011

[eluser]kimo_gusatava[/eluser]
yup me too!

I'm using zend server community edition...