I need to save the phone\'s timezone in the format [+/-]hh:mm
I am using TimeZone class to deal with this, but the only format I can get is the following:
With java8 now, you can use
Integer offset = ZonedDateTime.now().getOffset().getTotalSeconds();
to get the current system time offset from UTC. Then you can convert it to any format you want. Found it useful for my case. Example : https://docs.oracle.com/javase/tutorial/datetime/iso/timezones.html