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 an apache 2 web server working with a tomcat 6 servlet container running on ununtu 9.1, integrated via mod_proxy.

I have the following time mismatch problem:

  • When apache log to its access-log file, the date/time is correct.
  • When a grails app running on tomcat inserts date-related information in the DB, the time is three hours ahead

Any tips on how to fix tomcat's datetime problem ?


share|improve this question
up vote 1 down vote accepted

Is this a Timezone problem? Perhaps setting up the TZ variable (and exporting it) in the tomcat startup script might help.

share|improve this answer

GO to File and Set the Time Zone. It may mismatch with the System. LIke -Duser.timezone=GMT+5 add this into JAVA_OPT Variable.

share|improve this answer
This is such an ugly solution. – Tom O'Connor Sep 26 '11 at 12:53

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.