How to setup timezone on glassfish

How to setup timezone on glassfish/jvm

Download
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/tzupdater-1_3_33-2010l.zip?BundledLineItemUUID=IXeJ_hCvlacAAAErQScpGPRn&OrderID=97KJ_hCvNGcAAAErNCcpGPRn&ProductID=T56J_hCwuZIAAAEre0AZ1adz&FileName=/tzupdater-1_3_33-2010l.zip

Application Server > JVM Settings > JVM Options
Add JVM Option
-Duser.timezone=Brazil/East

Configuration –> System settings
user.timezone = Brazil/East

Restart glassfish
# service glassfish stop
# java -jar tzupdater.jar -u -v
# service glassfish start

Confirm :
# /usr/local/GlassFishESBv22/glassfish/bin/asadmin generate-jvm-report –type summary
user.timezone = Brazil/East

Verfiy log date:
# tail -f /usr/local/GlassFishESBv22/glassfish/domains/domain1/logs/server.log

One thought

Leave a Reply

Your email address will not be published. Required fields are marked *

VAMOVE *

*