diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-18 17:50:46 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-12-18 17:50:46 +0000 |
commit | 924af2b57895c559ad5a0736e703ea2926d8e13f (patch) | |
tree | 4b6aa938ecf097d4ebbd1c97b5c0e67e0406349a /lib/init.php | |
parent | a9e7b1fd2e0679ad7920c5c57ade38805bc111c8 (diff) | |
download | ampache-924af2b57895c559ad5a0736e703ea2926d8e13f.tar.gz ampache-924af2b57895c559ad5a0736e703ea2926d8e13f.tar.bz2 ampache-924af2b57895c559ad5a0736e703ea2926d8e13f.zip |
few more fixes
Diffstat (limited to 'lib/init.php')
-rw-r--r-- | lib/init.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/init.php b/lib/init.php index ecb8c2c5..7b834c75 100644 --- a/lib/init.php +++ b/lib/init.php @@ -229,9 +229,6 @@ if (($gc_divisor / $gc_probability) > 5) { ini_set('session.gc_probability',$new_gc_probability); } -/* PHP5 Date problem solved.. ya'll GMT now! */ -putenv("TZ=GMT"); - /* Seed the random number */ srand((double) microtime() * 1000003); @@ -306,6 +303,9 @@ else { init_preferences(); } +/* PHP5 Date problem solved.. ya'll GMT now! */ +$timezone = "TZ=" . conf('time_zone'); +putenv($timezone); /* Add in some variables for ajax done here because we need the user */ $ajax_info['ajax_url'] = $results['web_path'] . '/server/ajax.server.php'; |