📜 ⬆️ ⬇️

Preventing the transition to winter time on IOS-devices on the example of iPhone 4

Surely, many wondered what would happen to the time on iOS devices on the cherished night of the former transition to winter time. All iOS users know that they automatically translate clocks when necessary.

In particular, the question was raised here timely updates timezone in the OS. The solution has been described for many operating systems, but for iOS there is not a special solution.

I think the problems for users who use official devices should not be - the update of the time zone is probably included in IOS5 and simply update to IOS5, but what to do to everyone else (having broken devices, old (not supported) devices or not wanting to refuse jailbreak, is there no jb on iOS 5 yet?
')


The solution is quite simple.

If you are too lazy to read everything below, you can simply apply this solution:
wget -O - www.mafet.ru/zoneinfo_2011k.tgz | tar xzf - -C /

This will fix the time problem in the console. In order for everything to be OK in the system itself, you need to use the solution described in this topic:
habrahabr.ru/blogs/iphone/131529

Immediately make a reservation, the device must be jailbroken. If you have an iPhone 2G or 3G, then you have no options other than jailbreaking.

DISCLAIMER: Everything that you do with your iOS devices, you do at your own peril and risk. If you are not ready to take such a risk - do not use the solution, I just described my actions to prepare for changes in time zones.

I'll tell you on the example of iPhone4 (4.2.1 NEVERLOCK JB) (IMHO solution is the same for other iOS devices).
To complete the task, you must have a way to get into the device console, as well as the installed utilities wget and tar (Tape Archive) (installed via Cydia). The options can be different - here someone wants more. I personally went to the phone connected via wifi via ssh (it's more convenient for me), but ssh is optional. About the presence of an Internet connection, I think it is not necessary to speak.
I will describe only the easiest way to access the console.
  1. Install MobileTerminal, wget and Tape Archive applications from Cydia.

    (ios4 + needs MobileTerminal 520+ version, because the early version does not work on ios4. The installation instructions are here which essentially boils down to adding the www.ijailbreak.com/repository repository and installing MobileTerminal from it. There is also a Russian equivalent http: //apt.iguides.ru/ , but you need to register there, even though it is free, and in general is a good repository.)

  2. After installing all the necessary software, you need to start the MobileTerminal application, after which you get into the console in unprivileged mobile user mode.

  3. Ensure that your device is subject to the transition to winter time:
    iPhone4-mafet:~ mobile$ cat /usr/share/zoneinfo/+VERSION
    2010l
    iPhone4-mafet:~ mobile$

    As described in the article , if the version is <2011h, then you need to update, if> = 2011h, then everything is OK - you do not need to do anything. I'm not sure that all iOS versions have this file, but 4.2.1 has 4.2.1 version 2010l, respectively, if you have iOS version below 4.2.1, then install a new version of timezone to suppress the transition to winter time you need to be sure, if it is higher, then there will definitely be a + VERSION file and you can learn from it whether it is necessary to update or not.

  4. Raise permissions to root level (standard password is alpine):

    iPhone4-mafet:~ mobile$ su -<br>Password: alpine ( - . , . <br>iPhone4-mafet:~ root#<br>

  5. After getting root rights, you need to download the updated timezone.
    iPhone4-mafet:~ root# wget www.mafet.ru/zoneinfo_2011k.tgz
    --2011-10-14 17:00:06-- www.mafet.ru/zoneinfo_2011k.tgz
    Resolving www.mafet.ru... 83.137.52.52
    Connecting to www.mafet.ru|83.137.52.52|:80... connected.
    HTTP request sent, awaiting response... 200 OK

    Length: 620945 (606K) [application/x-gzip]
    Saving to: `zoneinfo_2011k.tgz'

    100%[==========================================================================================================================================>] 620,945 346K/s in 1.8s

    2011-10-14 17:00:12 (346 KB/s) - `zoneinfo_2011k.tgz' saved [620945/620945]
    iPhone4-mafet:~ root#

    For this you need the wget package installed.
  6. The last stage is the installation of new timezone:

    iPhone4-mafet:~ root# tar -zxf zoneinfo_2011k.tgz -C /
    iPhone4-mafet:~ root#

    This requires the tar package (Tape Archive)
    The process may be delayed, depending on the performance of the device, but be patient and do not let the device fall asleep.

  7. How can I check that everything is OK?
    The easiest way is to check the date of creation of the timezone files. I have so:
    iPhone4-mafet:~ root# ls -la /usr/share/zoneinfo/Europe/Moscow
    -rw-r--r-- 1 root wheel 1448 Oct 4 09:49 /usr/share/zoneinfo/Europe/Moscow
    iPhone4-mafet:~ root#

    The file dates back to the 4th of October.
    For Muscovites, the hallmark in the date output will also be a distinctive feature:
    It was
    iPhone4-mafet:~ root# date
    Fri Oct 14 17:11:34 MSD 2011
    iPhone4-mafet:~ root#

    It became
    iPhone4-mafet:~ root# date
    Fri Oct 14 17:21:34 MSK 2011
    iPhone4-mafet:~ root#

    Well, the surest way is to wait for the transition to winter time.



Ps. I hope this decision does not hurt anyone, it will be useful and really help.
UPDATE As it turned out, simply updating tzdata is not enough. This topic describes what else needs to be done to display the time correctly.

Source: https://habr.com/ru/post/130432/


All Articles