Android Phone Time zone update

Source: Internet
Author: User

In the Nitz test, the first need to determine the correct state code or not, if the country code is set to the correct, then in the time zone update,

You will not get the time zone from Nitz for updates. So when it comes to testing, the time zone does not change, regardless of how the Nitz message is set.

When setting the country code on the BTS is wrong, the phone will get the time zone from the Nitz message, at which time the timezone will be updated according to the Nitz message.

Settimefromnitzstring

if (zone = = null) {

if (Mgotcountrycode) {
if (ISO! = NULL && iso.length () > 0) {
Zone = Timeutils.gettimezone (tzoffset, DST! = 0,c.gettimeinmillis (), ISO);
} else {
Zone = Getnitztimezone (Tzoffset, (DST! = 0), C.gettimeinmillis ());
}
}

Android Phone Time zone update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.