How to setup timezone on glassfish

How to setup timezone on glassfish/jvm


Application Server > JVM Settings > JVM Options
Add JVM Option

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 *