Say there's a component in the app that overrides the default time zone with TimeZone.setDefault()
, and let's assume that's OK!
(I see it's a bad practice, but for the sake of this question, let's just go with it.)
In some places very limited cases I still need the actual device's time zone, but TimeZone.getDefault()
will provide the overridden value.
Is there a way to query the device's actual time zone (set in Android settings/provided by network) without asking Java's TimeZone#getDefault
?