Android Timezone Turkey Gmt
For 2016 Turkish Government decided to stay GMT+3 timezone to save daylight, but on android: Calendar calendar = Calendar.getInstance(); TimeZone tz = TimeZone.getTimeZone('UTC')
Solution 1:
See the release note of tzdb-database for version 2016g:
Release 2016g - 2016-09-13 08:56:38 -0700
Changes to future time stamps
Turkey switched from EET/EEST (+02/+03) to permanent +03, effective 2016-09-07. (Thanks to Burak AYDIN.) Use "+03" rather than an invented abbreviation for the new time.
Obviously, your Android device still uses an outdated timezone version. Actually you have following options to proceed:
- Wait for a new Android version (not attractive, not recommended).
- Use another external library like Joda-Time-Android or my library Time4A which already use 2016h (Threeten-ABP is still behind, actually on 2016e).
- Or write your own hack using fixed offsets for Turkey, for example
TimeZone.getTimeZone("GMT+03")
Post a Comment for "Android Timezone Turkey Gmt"