Quote by tobymiller: All I had to do was edit two files:
1) config.php
Add this line (line 224):
Text Formatted Code
$_CONF['timezone'] = 'US/Eastern';
after this line (line 223):
Text Formatted Code
$_CONF['default_charset'] = 'iso-8859-1';
2) lib-custom.php
Add these lines (line 45):
Text Formatted Code
// Timezone hack
if (!empty($_CONF['timezone']) && !ini_get("safe_mode")) {
putenv("TZ=".$_CONF['timezone']);
}
after the header comments so that it is the first chunk of code.
That's it, change the timezone property to the one you want and you're done. I'm running v1.3.9sr1.
I made the changes suggested above -- (except I made changes to lib-common.php instead of lib-custom.php (didn't see a lib-custom.php w/ 1.3.9))
The timezone changes to the correct one I specified, but when I try to log in as an admin via /admin
I get these errors:
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/xxxx/lib-common.php:531 in /home/jserra/public_html/lions/system/lib-sessions.php on line 314
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/xxxx/lib-common.php:531 in /home/jserra/public_html/lions/admin/auth.inc.php on line 73
To be more explicit, I am able to load the admin login page with no errors, but when I type in the login information and click Submit, I get a two second error flash at the top of the page (the real page does load below the errors - and I see that for a second I'm logged in (cause I see the Logout button for a split second)) but after the two seconds it redirects me again to the moderation.php admin login page..
Anybody having the similar issue?
Thanks!
BTW - normally these errors mean extra empty lines at the bottom of the pages??
There are no empty lines at the bottom of the two pages noted in the error message - also I checked moderation.php, etc., but still I receive the error...