I remembered that, together with a work colleague, I had already solved this problem on Android (HTC Hero) a long time ago and wanted to write to the sandbox, but put it off until later. And today another article “Updating Time Zones on Android” appeared, which practically buried the idea of ​​​​writing and confirmed the idea that important things should not be postponed until later. But... having remembered a little, I nevertheless decided, because in these articles the problems associated with the transition to winter / summer time were considered and the moment concerning the work of the clock widget with the weather and automatic time determination through a mobile operator was not touched at all.

It all started with the purchase new phone HTC Desire S.

During the setup process, it turned out that in the date and time settings there is no way to select my city - Novosibirsk and I have to choose an alternative city with a suitable time zone.
It also turned out that the time synchronization from the operator works somehow mysteriously and HTC widget Clock in the weather display mode and automatic synchronization turned on displays the wrong time.

On the picture it may seem that everything is in order, but the time actually ran on the phone an hour ago. Can be turned off automatic detection and expose the zone with his hands, but then we get the following:

As you can see, Novosibirsk is not on the list. We had to select Bangkok, while the system time in the phone became correct, but the widget still displays with an offset one hour ago.

We tried to find a solution on the net. We found out that we are not alone, and such problems exist not only among the inhabitants of Novosibirsk, but also among the inhabitants of other cities of the planet. Complete solution We did not find all of these problems.

It was possible to score on all this, turn it off, put it up with your hands and not pay attention to the widget, but ... this is Android - which means that we can and must defeat it!

And so we begin
The new phone was not rooted at that time and it was not possible to make it as such. Therefore, HTC Hero was taken for experiments with original firmware+ root/busybox/apps2sd, which had exactly the same problems.

Found through osmonitor an application in which the time zone is selected - (com.android.settings). We looked at the sources of the com.android.settings package and found out that the resources are loaded from XML file timezones.xml.

Got the apk of this application /system/app/Settings.apk with the following command:
adb pull /system/app/Settings.apk

I will not describe all the details of the work of APK manager and Android SDK tools, I think interested people will easily figure it out. I will focus only on the key points.

FROM using apk manager did the following

  • decompile
  • handles in another window edited files
  • compile. When compiling APK manager asks questions:
    "Is this a system apk (y / n)" - answer yes
    "Aside from the signatures, would you like to copy over any additional files that you didn't modify from the original apk in order to ensure at least # of errors (y / n)" - also answer yes.
    Next, we act according to the instructions suggested by the APK manager, in another window we delete the files that we changed + resources.arsc from the keep directory.
  • We complete the assembly.
We have made changes for our city, by analogy, residents of other cities will also be able to try to eliminate this problem on their phones.

The resulting apk was placed back into the phone:
adb push Settings.apk /system/app/

By doing this, we have ensured that Novosibirsk appeared in the list of manual selection of the time zone.

Our city appeared in the list, but the definition of the time zone in automatic mode still didn't work correctly. To do this, we went further and found out that the time zone settings for cities are stored in the database, namely in the /system/etc/WPDB.zip file.
Having taken it out of the phone using the same adb, we extracted two bases from it

  • WP_0409WWE.db
  • WP_0419ENG.db
for English and Russian, respectively. After looking at the data, we found that for our city, the time zone is registered as Asia/Almaty, we had to correct this moment too, for this we changed the timezoneId to Asia/Novosibirsk in the databases (we used Lita as the SQLite database editor):
update locationlist set timezoneId = "Asia/Novosibirsk" where name = "Novosibirsk" -- (for WP_0409WWE.db) update locationlist set timezoneId = "Asia/Novosibirsk" where name = "Novosibirsk" -- (for WP_0419RUS.db)
In addition, an entry about our city was added to another database, namely in /system/etc/timezones.db
Added record, timezoneId: Asia/Novosibirsk, other fields Novosibirsk, ru - Novosibirsk.

In order for all the changes made to take effect, reset the cache for applications
Clock, Settings and Weather Provider. Well, to be sure, restarted the phone.

Results

The result is the following pies:

As we can see, in the automatic mode, the zone is determined correctly, the system time and the time on the widget are the same, well, in manual mode everything is fine.

Having got involved in a war against time, we decided to go to the end. Namely, to solve the problem of canceling the transition to winter / summer time.
Downloaded the latest tzdata (aka timeinfo.dat) from a then still available resource

Setting the date and time in operating system Android is a simple thing, but in some cases, the user may also have difficulties with it. They can be associated both with ignorance of some things, and with failures of the operating system itself.

How to set date and time on Android

The correct date and time not only helps the user to be more punctual - few people want to miss the bus because of the wrong time - they are also important for the operation of some applications, which, if the data is incorrect, can start to crash and work with errors. Therefore, setting the correct date and time on the device is strongly recommended.

The process of setting the date and time in different versions Android is about the same: except that in new devices, the system asks you to set up data immediately, even before you start using applications. In addition, the names of the menu items responsible for the time and date may differ slightly from each other in different OS versions.

After these simple manipulations, the date and time should change.

Video: Setting the Time and Date

If problems arise

It happens that errors occur when setting the date and time: changes are not applied, the freshly set time and date are reset, or even thrown out of the "Settings" with an error. There can be many reasons, but the most common ones are:

  • you have auto-time synchronization turned on, and therefore attempts manual change lead to nothing. To disable auto-sync, you need to uncheck "Use network date and time" in the date and time settings;
  • the problem is related to a single failure in the system and should stop after a factory reset or reboot;
  • marriage in the firmware of the device - in this case, if you are not experienced user, it would be best to contact the master in service center, because when you try to reflash the device yourself, there is a high risk of damaging it;
  • there was a conflict between the time zones of the phone and the SIM card (most often this happens with the Tele2 operator).

To fix the problem with the conflict of time zones and the SIM card, do the following:

Auto date and time synchronization

If you do not want to set the time and date manually, you can use the built-in android function automatic time synchronization with the network. Or, if maximum accuracy is important, its improved version, which requires root rights to implement.

Normal auto-sync

To synchronize the date and time with network data, you need to tick only one item located in the “Date and Time” settings menu. Usually it is called "Use network date and time", but options like "Automatic date and time", "Synchronize with network" and other similar options are also possible.

After this item is checked, the date and time on the phone or tablet are synchronized with the network data and will henceforth be determined automatically. While this feature is enabled, manual setting date and time is not possible.

When the "Use network date and time" checkbox is checked, the system itself checks the date and time with the network

Smart sync

Standard synchronization is not accurate and works with an average error of 500 milliseconds (that's about half a second). This is due to the fact that when it was created, old and rather slow data transfer protocols were used. As a result, information about the current time simply does not have time to arrive on time and is slightly late. This leads to an inaccuracy, which is corrected by numerous applications for "advanced" time synchronization.

Applications need to intervene in order to function properly. android settings, but they don't have that right by default. Therefore, in order to carry out smart synchronization, you need to have superuser rights, or root rights, on your device. However, those applications that are the most advanced, with a sin in half, but do without them.

The algorithm for obtaining root access is unique for each phone model that is on this moment hundreds. There is no general way to get root access on any device: even the most popular root hacking apps operate with a limited set of models, and it is not known whether a particular application will suit you. To get root access to specific device you need to familiarize yourself with the technical documentation on its rutting on a specialized resource.

There are several smart sync apps out there, and they all look the same. Let's analyze how to work with them using the ClockSync application as an example.

ClockSync can be downloaded from the official page at Google Play. However, this application is one of the most resource-intensive and multifunctional: for example, it allows you to change the server that checks the time. If you are not such an advanced user, then you can use some simpler analogue: for example, Smart Time Sync.

Setting the time zone

You can change the time zone defined on the device in the same settings item, “Date and time”. The "Time zone" line allows you to change the default zone.

The time zone, like the date with time, has an auto-sync option. You can turn it on if you are not sure about knowing your own time zones, but in the old Android versions this setting sometimes fails, so it is recommended to configure it manually there.

To synchronize the time zone with the network, you need to enable the "Use network time zone" option

You can find out exactly which time zone is used in your area using the media in your place of residence, including the Internet. The Moscow belt is GMT + 3, in St. Petersburg and central Russia it is also mainly used. In general, Russia uses time zones from +3 to +12.

To select a time zone, you need to click on the "Time Zone" button and select from the huge list the one that is used in your region. After that, the time will be set in accordance with the selected zone.

To select a time zone, simply find the one you need in the list and click on it.

The time zone is off

The time zone can go astray in several cases: either incorrectly working auto-sync (in this case, you must enable manual zone selection), or an incorrectly set region in the phone or tablet settings.

In addition, an error in the databases can be the cause of the failure. In this case, only one of the applications for "smart" synchronization, which has already been mentioned, will help; the servers they use usually determine the timezone without error. However, root access is required to use such applications. In the settings of such applications, there is an item "Auto-sync", which can only be enabled with the "root". If automatic synchronization of time zones is enabled, the zone will also be determined automatically by the application - and this will be done more accurately than the system menu.

In the main settings menu of ClockSync and similar applications there is a button "Auto-sync time zone"

Video: “fixing” the time zone through the application

Setting the time and date on Android is easy - if the phone does not require the maximum correctness of the result. If you want your watch to be extremely accurate, you have to work hard. In any case, correctly determined time is a valuable feature of the phone, which is extremely important for its normal operation.

Having bought a new mobile gadget, users may encounter the problem of incorrectly set time zones, current date and time. Solving it, however, can be quite simple, and in this guide we will tell you how to set the date and time on a smartphone running Android.

To set the time on Android, you need to follow a few simple steps:

Step 1. Run Settings, go to the category " System and device” and select the section “ Additionally».

Step 2. Click the button date and time».

Step 3. In the window that opens, you can set the time, change the date, select the format for displaying time and date, set the time zone, and also set the automatic receipt of settings.

You can go to the date and time parameters in another way - through the application Watch:

Step 1. Launch the application Watch.

Step 2. Click the options button.

Step 3. Click on the button " Date and time settings».

Why is time lost on Android

Synchronization of date and time on Android smartphones sometimes it may not work correctly, due to which the settings fail. To fix this problem, you need to disable the " Network date and time" and " Network time zone”, and then set the settings manually.

If the issue persists, you should reset Android to factory settings and reinstall all settings.

Conclusion

Can stray time, is the power supply of the device from the battery. For example, to replace a SIM card, most phone models require not only turning off, but also pulling out the battery. At a certain time of his absence in phone reset occurs various settings, including time. In some models, the same situation is observed when the memory card is pulled out. Sometimes the contact of the battery with the phone weakens, for example, this can happen when it falls. In this case, there is also a high probability that the time settings will be wrong. Another option is an old battery that quickly loses its charge. Replacing it will help solve the problem.Another possible reason for resetting to phone time is an incorrect time zone setting. To change it, open the phone menu, then the "Settings" section and select the appropriate item. Note that one of the reasons may also be the legislative cancellation of the transition in Russia to winter time since autumn 2011. In those phones in which it was installed automatic switching between summer and winter times, the transition has been made. Disable this setting so that it does not cause additional problems in the future. Also, the solution may be updating the firmware of the mobile device. If you use a program to synchronize your phone and computer, the reason may lie in the enabled time synchronization option. To disable it, run the program, open its settings, find the appropriate item and uncheck it, then save the changes. Some phone models also synchronize time when connected to the Internet. Disable this option in your phone settings.

The display of the exact time on the computer is carried out using a special microcircuit, which is powered by the mains when the computer is turned on and a small battery is turned off. The reasons for the appearance of failures in the displayed time are usually the same for each computer.

Hardware problems

The primary reason for the wrong time to be displayed when the computer is turned on and the system boots up is that the battery in the case has run out of life, due to which the computer becomes unable to maintain the correct time after it is turned off. The battery needs to be replaced. To do this, turn off the computer from the network and unplug the power cable from the system block. Unscrew the screws that hold the side cover of the device and pull out the cover itself. Locate the battery and, by bending the mount, remove it. Place in the body new battery. Usually a 3V battery is sufficient.

Make sure your computer's power supply is strong enough. In some cases, due to the incorrect selection of this item, the computer may malfunction, due to which it starts to display the wrong time.

If even after replacing the battery, the time is still not set correctly, contact a technical specialist: the problem may be an outdated motherboard, which is out of order or conflicts with newer equipment.

Operating system problems

Make sure you set your time zone correctly. Typically, these settings are entered during system installation, but they can also be set later by double-clicking the left mouse button on the clock in the lower right corner of the screen and going to the “Time Zone” tab. Remember that if you set the wrong time zone, the system will automatically set the time corresponding to it.

Viruses can be the reason for incorrect time setting by the system. Check your computer's hard drive and removable media anti-virus program and remove any malicious objects found.

Pay attention to whether time synchronization with Internet services is enabled in the time settings. It is advisable to set the Microsoft website as the time source. In this case, it will become accurate and will be automatically adjusted each time you connect to the Internet.

Check if any software is messing up the time. Some programs have their own time settings and, after installation, configure the system to suit their needs, ignoring the settings set by the user. It is advisable not to install suspicious applications downloaded from suspicious Internet sources on your computer.

For many users, the mobile phone has become great replacement wrist watch. It can always be used to determine current time. For this reason, for many of them, periodically resetting the time settings is a serious problem.

Sponsored by the placement of P&G Articles on the topic "Why the time gets lost on the phone" How to transfer topics from the phone How to return the Samsung phone to factory settings How to restore standard settings in Nokia One of the reasons why the time can be lost in a mobile phone is the power supply of the device from the battery. For example, to replace a SIM card, most phone models require not only turning off, but also pulling out the battery. At a certain time of his absence in the phone, various settings are reset, including the time. In some models, the same situation is observed when pulling out a memory card.

Sometimes the contact of the battery with the phone is weakened, for example, this can happen when you drop it. In this case, there is also a high probability that the time settings will be wrong. Another option is an old battery that quickly loses its charge. Replacing it will solve the problem.

Another possible cause Reset on the phone time is an incorrect time zone setting. To change it, open the phone menu, then the "Settings" section and select the appropriate item. Note that one of the reasons may also be the legislative cancellation of the transition to winter time in Russia from the fall of 2011. In those phones in which automatic switching between summer and winter times was set, the transition was made. Disable this setting so that it does not cause additional problems in the future. A firmware update might also be a solution. mobile device.

If you use a program to synchronize your phone and computer, the reason may lie in the enabled time synchronization option. To disable it, run the program, open its settings, find the appropriate item and uncheck the box next to it, then save the changes.

Some phone models also synchronize the time when connected to the Internet. Disable this option in your phone settings.

How simple

Other related news:

Discharging the battery of the phone occurs in the process of its operation. This process is unstoppable and cannot be changed. But here the task of increasing the battery life may well be solved. Consider methods for minimizing battery drain on the example of Windows Mobile phones

Phone keypad backlighting often drains the battery and is not always desired function, however, it is very easy to disable it by going to the corresponding settings item of the mobile device. Sponsored by P&G Placement Articles on the topic "How to turn off the backlight of the keyboard" How to enter the panel

Today, even the most sophisticated person can pick up a mobile phone to taste. Companies offer a huge selection among features and models. And the use of these functions is individual for each. It is important to set up your device "for yourself", for more convenient operation, to

Most phones use a lock code. It is designed to hide the data that the owner deems necessary. This is done in order to prevent possible losses in case of loss or theft of the phone. However, it often happens that the owners themselves forget the code

The screensaver in a mobile phone appears during a certain time of being in the standby mode of the device according to the parameters set by you or the manufacturer. It can also be disabled in the menu of your mobile device. This is also true for other devices - portable

Mobile phone settings can be adjusted by the user according to their preferences. In particular, this concerns the ability to enable and disable the sound of the keyboard, as well as other functions. You will need - mobile phone; - instructions for your phone model. Sponsor

In every mobile phone there are certain counters showing the number of calls, their duration, Internet traffic indicators, and so on. They can be reset in several ways, after reading the corresponding paragraph in the user manual. P&G Placement Sponsor Articles

There are several reasons for this "temporal anomaly" in the tablet. And believe me, if time goes astray, it is unlikely that the tablet has forgotten how to count.


List of the main reasons why this happens and how to solve it

    1. You turn off the tablet at night, for example, to save battery. A very common reason, and the only way to get the time to work correctly, is to stop turning off the tablet for no good reason. It's not a laptop or a TV.
    2. If your tablet is equipped with a 3G module and a SIM card is inserted into it, remember where you bought the SIM card. Perhaps you bought the card in another region with a different time zone. And if you have a tick in the settings “Network date and time”, this means that the time set on the tablet is set by the operator's settings in the region where the SIM card was bought. The solution is to uncheck this box and set the time manually.


  1. "Bad" firmware. If you've been fiddling with flashing your tablet, it's possible that the firmware you've installed contains some kind of bug. Solution - flash with official software.
  2. The device itself may be the problem. It is said that Chinese tablets have twists over time - a fairly common occurrence. In the fight against this disease, the ClockSync application will help (requires ROOT rights to work). This program will allow you to set up automatic time synchronization via the Internet, most importantly, in the date and time settings, uncheck the “Network time zone” item, and set the correct time zone corresponding to your region.

Many modern phone users have not used watches for a long time, because the gadget is always at hand. It is important for them that the date and time are set correctly, as failures are fraught with late awakening for work and constant lateness. Therefore, each user needs to know how to set the time on an Android phone.

Incorrect time on the phone - why does this happen?

Even after adjusting the date and time very precisely, you may find the clock on the screen showing incorrect information. Before entering new information, you need to understand why the time is lost on the Android phone. If you do not find the reason, then entering new data will be useless.

There are several situations where the time for Android phone the date and time are out of sync. First of all, this happens if you decide to use network data. When traveling in your region or in settlements located on the border of time zones, you may encounter the fact that the time information has unexpectedly gone astray. In this case, it is enough to disable synchronization with the network using the moving sliders in the date and time settings.

Another reason why the time is lost on the phone is a software failure. This may be due to the installation of some personalization applications, such as new clock widgets. Only a factory reset can fix the problem. Please copy the required information before proceeding.

How to set the date and time?

After you have familiarized yourself with the main causes of failures, you need to learn how to set the time on your smartphone. To do this, you just need to follow a simple instruction:

  1. Go to the main menu, where all applications are collected.
  2. Among the icons, find the gear icon titled "Settings". Go into it.
  3. Among all the sections, you must select the one titled "Date and Time". In some versions of the operating system, this menu item is located in a larger directory - "Device". Sometimes the date and time settings can be hidden in the Advanced Options folder.
  4. After you have found a place with desired settings, you need to make changes to the current date and time values. Here you can change the time zone, adjust the data display format.

You do not need to reboot the device, immediately after confirming with the “OK” button, new data will begin to be displayed in the widgets on the screen and in the status bar.

There is another way to change the time settings

To do this, you can use the clock application, which manufacturers often place in the "Tools" folder. The algorithm of actions in this case is as follows:

  1. Log in to the app.
  2. Go to its settings options. They are hidden behind three vertical dots or a gear icon.
  3. Select "Change date and time". It may also be titled “date and time settings”.
  4. Use the visual dial to change the current value.

The downside of using the app is that you won't be able to change the display format or time zone.

What to do if the time on the phone goes astray?

If you are trying to set the desired parameters, and they are reset, then there may be several reasons:

  1. You have synchronized the time with the settings set by the network. In this case, before editing, you must remove the marker or move the tab from the “Use network date and time” item. This can only be done through the system settings menu.
  2. A single software failure can be resolved by rebooting the device. If it does not help, then you need to completely reset the user settings.
  3. The marriage of the firmware of the device is manifested from the first days of its use. You can replace yourself software or contact the service center for help.
  4. The time zone set on your smartphone conflicts with the SIM card settings. In this case, you should change the time zone to the one recommended by the network, and then set the necessary parameters and turn off synchronization.

In some cases, to resolve the conflict between the settings of the smartphone and the SIM card, you need to take more complex steps. First of all, you need to keep necessary files, remove the SIM card and perform a factory reset. Only after that you need to disable synchronization with the network and set the desired date and time parameters.

Please note that factory reset on devices with open root access can destroy custom firmware.

Using auto-sync time and date

If you want to have a gadget with the exact time set at hand, then you need to use synchronization. There are two ways to get the exact time on your smartphone screen - use the standard features or use smart sync apps.

Normal auto-sync is enabled in the settings. You need to activate an item with one of the following names:

  • automatic date and time;
  • use network date and time;
  • synchronize with the network.

But note that after activating this option, you will not be able to manually change the date and time settings. This option is also not noted for particular accuracy - an average error of about 500 milliseconds.

Smart time sync with phone app

"Smart" synchronization is enabled using applications. To do so, it is necessary to intervene in system settings, so such programs require "superuser" rights. Without them, they won't work. All smart sync apps have a similar interface. Let's analyze the principle of managing them using ClockSync as an example. This application has won positive ratings from many users. You need to work with it according to the instructions:

  1. Download and run the application.
  2. On the main screen, you will see the current time set on the smartphone, as well as a more accurate value delivered from special server. As a rule, the difference in data can be more than 20 seconds.
  3. Use the buttons at the bottom of the screen to call context menu(usually, the icon of several sticks or windows located on the right is used for this).
  4. Click on the "Synchronize" menu item.
  5. The app will ask you for root access. Allow him to change the system settings using the Grant button.
  6. After synchronization, there should be no discrepancy in the data on the main screen - the value “0” should be in the third line.

If you have a regular firmware that does not give superuser rights, you must change its settings before using the application. To do this, call the context menu and select the "Settings" item. The very first line in it will be the inclusion of mode without . Place a marker next to this line.

How to place a clock on the home screen?

Now let's figure out how to set the time on the phone screen. Reading it from the status bar is not always convenient, so you need to display a large and convenient image on your desktop.

Almost all smartphones have a clock widget on the main desktop. If it was accidentally deleted, then you need to return it:

  1. Open the desktop of your smartphone. Find a place free from shortcuts and widgets on it and press it with your finger with a long hold.
  2. A menu screen will appear in front of you. You need to select the "Apps and Widgets" item.
  3. From the two tabs, select the one labeled Widgets. You will see several options for sketches of visual additions. Find a clock among them.
  4. Touch and hold the clock image with your finger. The desktops of your smartphone will appear in front of you, with a flick of your finger you can move the visual module to any of them.
Beautiful Clock Widgets for Android

To change the data displayed by the installed module, use the instructions on how to set the time on the clock, phone. There are no children's widgets, as well as unusually designed clocks, by default in the operating system. To change the visual design of this module, you can download one of the applications:

  • "Transparent clock and weather";
  • Sense Flip Clock & Weather;
  • Sense V2 Flip Clock & Weather;
  • Retro Clock Widget ;
  • DIGI Clock.

In you can find other applications with a wider range of modules.

You can also display a clock widget on the lock screen. To do this, you need to go to the system settings, select "Screen" from them, and then stop at the "Lock" item. In it, you need to stop at the option - "Display time and date on the screen." Also here you can allow the use of widgets, and then personalize the "curtain" using a standard or pre-downloaded utility.

Now you know how to set the time on your phone. Share the received information with your friends. If you or your loved ones have problems setting the date and time, and you could not handle it yourself, ask questions in the comments.