How to set the time on Xiaomi Mi 5: automation and manual settings

The Xiaomi Mi 5, released in 2016, is still a popular device due to its reliability and ability to upgrade to current versions of MIUI. However, many users face the problem of lost time - especially after resetting, replacing the battery or updating the firmware. Unlike modern models, where time synchronization works out of the box, the Mi 5 sometimes requires manual adjustment due to the features of the Qualcomm Snapdragon 820 hardware platform.

In this article, we will look at all the ways of setting time, from automatic synchronization over the network to manually entering a date with time zones in mind, and pay special attention to typical errors, such as when the clock β€œhurries” for 3-5 minutes or resets after a reboot. You will also learn how to check the module. NTP-synchronization and what to do if the time on the lock screen does not coincide with the system.

Why is Xiaomi Mi 5 running out of time?

Time problems on the Mi 5 are usually due to one of three reasons:

  • πŸ”‹ Settled battery: at a discharge below 10% internal RTC-The module (real-time clock) can be reset, which is typical for devices older than 5 years, where the battery capacity drops to 60-70% of the nominal value.
  • πŸ“‘ Lack of network: if the mobile Internet or Wi-Fi is disabled, the smartphone can not synchronize with servers NTP (Network Time Protocol).
  • πŸ› οΈ Firmware failure: after incorrect update MIUI or root rights time service (com.android.server.timezone) may work unstable.

Fun fact: The Mi 5 uses a Qualcomm hardware timer that should theoretically support accurate time even when the phone is off. However, in practice, after replacing the motherboard or repairing the power module, this timer can be β€œreset” to factory settings (January 1, 2016).

⚠️ Warning: If after replacing the battery, time is reset every time you turn off the phone, the chip is a problem. PM8994 (In this case, only flashing the module through EDL-regime.

πŸ“Š How often do you have time lost on Xiaomi Mi 5?
Never.
After the reboot.
Once a week.
Always getting lost.

Automatic time settings through the network

The easiest way is to turn on automatic synchronization.

  1. Open Settings β†’ Additional β†’ Date and time.
  2. Activate the switches: ⏱️ Autodetermining Date and Time (using network data) 🌍 Time zone autodetermination (by geolocation or mobile network)

Reboot your phone to make the changes take effect.

If the options are not available (shaded in gray), then:

  • πŸ“΅ Mobile Internet is disabled – check your settings SIM-map.
  • πŸ”’ Superuser rights are active – some Magisk modules are blocked NTP-synchronization.
  • πŸ›‘οΈ It's working. VPN Firewalls – NetGuard can block access to time servers.

β˜‘οΈ Checking automatic synchronization

Done: 0 / 4

To check the current NTP server, enter the Terminal (root rights required):

su


getprop persist.sys.timezone




getprop gps.ntp.server

If the command returns an empty string, the server is not configured, in which case manual timing will help (see next section).

Manual date and time setting

If automatic synchronization is not working, set the time manually:

  1. Go to Settings β†’ Additional β†’ Date and time.
  2. Turn off the Auto-determining Date/Time and Time Zone options.
  3. Click Set a date and select the current date in the calendar.
  4. Click Set time and enter the current time (within minutes).
  5. For the time zone, select manually (e.g. Moscow, GMT+3).

On Xiaomi Mi 5, when manually setting the time, there can be a bug: after rebooting, the clock β€œruns away” 3-5 minutes ahead. This is due to an error in the RTC driver for the Snapdragon 820 processor. The solution is to install the ClockSync application from Google Play and force the time to sync every 6 hours.

Problem.Possible causeDecision
Time resets when switched offFailed RTC chip or battery failureReplace the battery or reflash the power module
The clock β€œhurries” for 5-10 minutesRTC driver error in firmwareInstall ClockSync or update MIUI
Time zone settings are not maintainedFailure in /data/property/persist.sys.timezoneReset your settings via Recovery
The time on the lock screen is not updatedConflict with the shell of MIUI LauncherClear the app cache Settings

πŸ’‘

If you've got a little bit of a time delay after manually setting up, try calibrating the battery: completely drain the phone, then charge it to 100% without interruption. RTC-module.

Setting up time zones and summer time

Xiaomi Mi 5 supports automatic summer/winter switching, but only if:

  • πŸ“ Geolocation enabled (Settings) β†’ Annexes β†’ Permits β†’ geodata).
  • 🌐 The correct time zone is chosen (e.g. Europe/Moscow, not Asia/Almaty).
  • πŸ”„ Time zone auto-update enabled (Settings) β†’ Additionally. β†’ Date and time β†’ Auto-renewal of time zones).

If the daylight saving time does not automatically change:

  1. Check if Google services are disabled (they are responsible for updating time zones).
  2. Update your time zone database through Google Play Services.
  3. Manually check the checkbox Use summer time in the date settings.

For countries where daylight saving time has been abolished (e.g. Russia since 2014), it is recommended to manually select a time zone without automatically switching.

  • βœ… Europe/Moscow (without summer time)
  • ❌ Incorrect: Europe/Berlin (with summer time)
How to check the relevance of the time zone database?
Open Settings β†’ About Phone β†’ MIUI Version. If the version is older than 2021, the time zone database is outdated. Update your firmware or install a patch through TWRP.

Solving Time Problems After Firmware

After updating MIUI or installing custom firmware (such as LineageOS), time may be lost due to:

  • πŸ“¦ Core incompatibility: if the firmware is assembled for another model (e.g. for Mi). 5s), driver RTC It will work incorrectly.
  • πŸ”§ Reset build.prop settings: this file stores server parameters NTP.
  • πŸ›‘ Errors in vbmeta: if the firmware was not turned off AVB (Android Verified Boot, the system can block time changes.

To correct:

  1. Check the firmware version in Settings β†’ About Phone β†’ MIUI version. It should match the Mi 5 model (codename gemini).
  2. If you have custom firmware installed, find the Device specific β†’ RTC fix section in its settings.
  3. For stock. MIUI Recovery: Adb Reboot Recovery Cleanup data/factory reset

⚠️ If after firmware time shows 1970 - this is a sign of resetting RTC-It can only be restored via the Fastboot command: fastboot oem config carrier "time-zone-auto-detect" But this method requires an unlocked bootloader!

Additional settings: widgets and lock screen

On Mi 5, time is displayed not only in the status bar, but also on:

  • πŸ”’ Lock screen: you can configure the format here (12/24 hourly settings β†’ Lock screen β†’ Clock style.
  • πŸ“± Watch widget: Add Analog Watch or Digital Watch widget to the home screen.
  • ⏰ Alarm clock: check if the time in the app clocks with the system.

If the time on the lock screen is not updated:

  1. Clear the Settings app cache (Settings β†’ Applications β†’ Application Management β†’ Settings β†’ Memory β†’ Clear the cache).
  2. Turn off and turn on the option to Show the date and time in the lock screen settings.
  3. Reset the theme (Themes β†’ My themes β†’ Reset to standard).

For customization enthusiasts, MIUI allows you to change the font of your watch through themes, such as the theme "Digital Clock Neo" adds neon digits, and the theme "Minimalist" - minimalist design, and you can install them through the official Theme app.

πŸ’‘

If the time on the lock screen and the status bar is different, the problem is in the service com.miui.home.Rebooting the phone usually helps.

Useful Applications for Precise Synchronization

If the standard settings don’t work, try these apps:

AnnexFunctionsReference
ClockSyncCompulsory synchronization with selected NTP-server, root supportGoogle Play
Network TimeManual selection of NTP server, synchronization logGoogle Play
TimeZone FixCorrection of time zone bugs on custom firmwareXDA Developers

For users with root rights, it is recommended:

  1. Install ClockSync and give it superuser rights.
  2. In the application settings, select pool.ntp.org server or time.google.com.
  3. Activate the Sync at boot option (synchronize when booting).

ClockSync also can compensate for network delays, which is useful for Mi 5 with slow internet, for example, if your ISP blocks standard Internet connections. NTP-port (UDP 123), the application may use alternative servers on port 80 (HTTP).

Frequently asked questions

Why does the battery change to Mi 5 lose time?
When replacing the battery could damage the plume going to the chip PM8994 (This is the power management chip. RTC-Solution: Check the reliability of the plume connection. Update the firmware through the Mi Flash Tool with the Clean All tick. If the problem persists, you need to solder the contacts on the board.
How to change the format of time from 12 hours to 24 hours?
Go to Settings β†’ Additional β†’ Date and Time β†’ Time format and select 24 hours. If the option is not available, check regional settings: some MIUI themes block this menu for individual countries.
Can I set up time through ADB?
Use the commands: adb shell settings put global auto_time 1 # Enable autosynchronization of the adb shell date -s "YYYYMMDD.HHMMSS" # Time to change the time zone: adb shell setprop persist.sys.timezone "Europe/Moscow"
Why is it that in games (such as Clash of Clans) time does not coincide with the system time?
Some games use their own time servers. If the difference is greater than 5 minutes, the game can block the account for cheating. Solution: Turn off root rights to play. Install FakeGApps to mask the changed time. Sync time through ClockSync before launching the game.
How to reset the time settings to factory?
Recovery: Turn off your phone. Press Volume Up + Power to log in to Recovery. Select Wipe & Reset β†’ Reset settings. This will return your time, date and time zone settings to factory settings, but will not delete user data.