I am using the function:
http://developer.android.com/intl/de/reference/java/util/TimeZone.html#getRawOffset%28%29

to get the GMT offset and use that to display dates in the users
timezone. This works great if the users has set a timezone in the
settings of Android, but if the user has selected "use network-
provided values" then some(all?) users get wrong time info since the
getRawOffset returns 0.

Is there a better way of getting the users timezone? I could always
include a "Choose timezone" setting inside my program but I feel this
shouldn't be necessary so I would hope to avoid it.

Any help is greatly appreciated.

-Christer

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to