.htaccess problem

woodyl

New Member
Prime Account
Messages
24
Reaction score
0
Points
1
I wanted to correct the timezone for my site. Right now, the default time zone for the server appears to be Chicago/Central time.

I edited my .htacess files to add this as the first line:
SetEnv TZ America/New_York

The problem is that when I test the time, it still shows the time zone is America/Chicago

I found 2 different .htaccess files in my account:

/public_html
/public_html/_private

Both of these have the edited TZ setting.

So, can anybody tell me why this isn't working?
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
I believe this is a server wide setting and anything you set in your htaccess is overridden by the highest level htaccess.
 

woodyl

New Member
Prime Account
Messages
24
Reaction score
0
Points
1
So, is there some way to set the correct TZ for my domain? It's a nuisance having it perpetually 1 hour off. How do other people deal with this?
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
there are functions out there to manipulate date/time strings. You can add/subtract hours to make the printed time in the correct time zone.
 
Top