Eric Bergman-Terrell's Blog

Java Programming Tip: Specify the JVM time zone
December 7, 2015

The Java Virtual Machine (JVM) time zone defaults to the machine's time zone, but it can be overridden from the command line:

java ... -Duser.timezone=US/Central

Here is the complete complete list of time zones.

clock

Keywords: java, vm, virtual machine, time zone, user.timezone

Reader Comments

Comment on this Blog Post

Recent Posts

TitleDate
Get JetBrains IDEs to Remember Subversion (SVN) CredentialsNovember 3, 2026
Converting a Thinkpad from Windows 11 to Linux MintOctober 29, 2026
Raspberry Pi Camera Trap and Animal Detection ProgramAugust 29, 2026
Python Tip: Fix Incorrect Orientation of Digital PhotosAugust 8, 2026
EBT Weather is now available for Windows and LinuxMay 30, 2026
Node.js + Express: How to Block Requests by User-Agent HeadersJanuary 7, 2026
Vault 3 is Now Available for Windows on ARM Machines!December 13, 2025