UTC time based on GPS is wrong on Android 4.4.2

Troubles with application

UTC time based on GPS is wrong on Android 4.4.2

Postby tony26 » 05 May 2016, 14:27

On devices running Androind 4.4.2 could happened that FlyIsFun show wrong UTC and Local time, offset is 1 hour. Problem is caused by bug in DST implementation in Android (daylight saving time).
As workaround use timezone where is not using DST.
Look into https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for timezone where are column UTC offset = UTC DST offset.

For example instead of Europe/Brussels use UTC+1 Africa/Brazzaville (winter) or UTC+2 Africa/Cairo (summer)

For more info see also here http://android.stackexchange.com/questions/139763/disable-daylight-saving-time-dst
and http://stackoverflow.com/questions/32377005/android-java-location-gettime-returns-utc-1-instead-of-utc-if-current-timezon
tony26
 
Posts: 2
Joined: 05 May 2016, 14:10

Return to Questions and answers

Who is online

Users browsing this forum: No registered users and 5 guests

cron