Home > HowTo, Linux > How to setup timezone on glassfish

How to setup timezone on glassfish

October 28th, 2010 Leave a comment Go to comments

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

Categories: HowTo, Linux Tags: , , , , ,
  1. July 20th, 2017 at 10:42 | #1

    hello

    it doing in default setting or server configuration?

    Thanks

  1. No trackbacks yet.

VAMOVE *

*