-
We are in the same boat.
I was also looking for a way to set a domains timezone through CPanel because server logs are also annoying with the timestamps written to system time. Or possiblely through some Apache directive that could be added to htaccess file.
I am going to check further on the Apache thing and post back results.
-
Well you can set your env variable using an Apache directive. Place this line in your .htaccess file in your document root directory:
SetEnv TZ America/Chicago
After placing this in my .htaccess file, PHP works like a champ and you no longer have to make the adjustment in your PHP code. However, MySQL still requires the per connection manipulation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules