I know I can feed VM arguments as follows
-Duser.timezone="Australia/Sydney"
Is there a programmatic way to do the equivalent? I would like the setting to be applied across the entire virtual machine.
java.util.TimeZone.setDefault()
can be used to set a default time zone to be returned by getDefault()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With