Tuesday, May 14, 2013

Timezone fix for Liferay

Ever been annoyed that liferay logs in GMT/UTC even though you might be somewhere else in the world and you system is correctly setup in terms of time and zone? Judging from google results a lot of people seems to want to change this for some reason...

This is because someone at Liferay decided it would be best to override the system time zone in their bundled tomcat configuration. Great idea!

To fix this silliness just edit your setenv.sh and remove the chunk of characters that is saying: -Duser.timezone=GMT

There you go. One step closer to a sane Liferay environment.