Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#38 upgrade.inc.php timezone issue

v4.5
open
nobody
None
5
2012-09-14
2009-09-07
Ramsey Ameen
No

Running OSIS 4.5.0 using XAMPP-Win32-1.7.2 Install completes but login fails with errors referencing calls to mktime()in upgrade.inc.php.
Reason is that PHP requres that timezone must be explicitly by method tjhat does not reference local system time.
I cleared the error by uncommenting and setting the following PHP runtime configuration option: date.timezone = "America/New_York", corresponding to my location.
Hosted server users usually can't do this, so instead your install program needs to request timezone info from the user, set a $timezone variable say in data.php, to a PHP timezone and then call date_default_timezone($timezone) prior to any call to mktime().

Discussion