SetEnv TZ vs date.timezone
===

What is the difference between setting the timezone in Apache's **SetEnv TZ** (.htaccess) and PHP's **date.timezone** (php.ini)? I haven't been able to detect how **SetEnv TZ** gets used. I tried setting **SetEnv TZ** to one value and **date.timezone** to another timezone but only the latter, **date.timezone**, seems to have any effect on the web pages. I'm also wondering how Apache configuratoins and PHP configurations, for the same things, affect the server, such as which overwrites which.