+ Reply to Thread
Results 1 to 4 of 4

Thread: .htaccess problem

  1. #1
    woodyl is offline x10Hosting Member woodyl is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    21

    .htaccess problem

    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?

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: .htaccess problem

    I believe this is a server wide setting and anything you set in your htaccess is overridden by the highest level htaccess.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    woodyl is offline x10Hosting Member woodyl is an unknown quantity at this point
    Join Date
    Nov 2008
    Posts
    21

    Re: .htaccess problem

    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?

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: .htaccess problem

    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.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

+ Reply to Thread

Similar Threads

  1. Site Problem
    By himgar in forum Free Hosting
    Replies: 3
    Last Post: 03-10-2008, 03:36 PM
  2. .htaccess problem
    By Calipe in forum Programming Help
    Replies: 3
    Last Post: 03-03-2008, 09:28 PM
  3. Ad code problem!
    By Akkarin in forum Free Hosting
    Replies: 8
    Last Post: 08-29-2005, 10:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers