In my bootstrap.groovy I'm adding:
TimeZone.setDefault(TimeZone.getTimeZone('America/Detroit'))
This works just fine when running my app locally; it changes the timezone correctly.
But when I deploy my app to my VPS, which is running CentOS Linux 6.5, the time is offset by three hours. Note: It is increased by three hours.
Also, I am running my app on Tomcat 7. I've tried adding:
export JAVA_OPTS="-Duser.timezone=America/Detroit"
to my setenv.sh file but this does not seem to work.
My server's system time and hardware time is correctly set and working. So I have NO idea why Tomcat is adding three hours to my dates!
Any help or guidance is appreciated!