Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server with ls ubuntu 12.04 apache2 and mysql.

I have two sites on this server, and The is a site for a country that has timezone -4 (UTC-4) and for a country with time zone -3 (UTC-3)​​. These sites present data bases in time. To be more friendly, I would like the sites and worked with their local schedules.

Is there any way of setting different time zones for sites (directories or files) on the server?

share|improve this question
up vote 1 down vote accepted

AFAIK, there's no way to set the server time itself to be different on different directories.

However, Apache does have a way for you to set the timezone, via the SetEnv directive. specifically, SetEnv America/New_York. You could set this for each of your Virtual Hosts, and hopefully that will clear up your issue.

share|improve this answer

Short answer: No.

Long answer: No; have the server use UTC and let the application convert the times.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.