How to set the exact time on your phone Xiaomi: 5 ways + error solving

The exact time on Xiaomi is not only a matter of convenience, but also the correct operation of many functions, from alarm clocks to sync with cloud services. However, users often face problems: the clock is in a hurry, lags or gets lost after a reboot. In this article, we will discuss all the ways to adjust the time on Xiaomi devices (including the Redmi, POCO and Black Shark models), and explain why automatic settings sometimes fail and how to fix it.

The MIUI firmware feature is the flexibility of the time settings: you can use both automatic synchronization with NTP servers (Network Time Protocol) and manual adjustment. We will look at both options, as well as hidden features for advanced users - for example, how to change the time server or reset the cache of the system clock. Separately, we will focus on typical errors, such as a constant time lag of 3-5 minutes or a date reset after a firmware update.

Important: instructions are relevant for MIUI 12, 13 and 14 (including global and Chinese versions).If your phone runs Android One (like Xiaomi Mi A3), some menu items may differ, as we’ll mention.

1. Automatic time synchronization over the network

The easiest way to set the exact time is to enable automatic synchronization with NTP servers. By default, this feature is active, but sometimes it turns off after resetting settings or updating the firmware. Here's how to check and configure it:

Go to Settings β†’ Additional β†’ Date and time. Here you will see three key switches:

  • ⏰ Date and time autodetermination – Includes synchronization with the network.
  • 🌍 Time zone autodetermination – defines the belt from the data of the cellular network or GPS.
  • πŸ”„ Use 24-hour format – switches the time display between 12- and 24-hour format.

If automatic synchronization is enabled, but time is still confused, the problem may be:

  1. Unstable Internet connection (especially when switching between Wi-Fi and mobile network)
  2. Blocking access to NTP servers with a firewall or VPN.
  3. Failure of the system application com.android.server.telecom (responsible for synchronization).

πŸ’‘

If you travel frequently, turn off automatic time zone determination and set it manually, which will prevent accidental roaming failures.

2. Manual setting of time and date

If automatic sync doesn’t work or you want to set the time manually (for example, to test apps), do the following:

  1. Open Settings β†’ Additional β†’ Date and time.
  2. Turn off the switches Autodetermining Date and Time Zone Autodetermining.
  3. Click on the Set a date and Set a time to manually enter values.
  4. To save the changes, you may need to restart the device.

Note that when you manually set up the time will not sync with the servers, so over time there may be a discrepancy of several seconds or minutes, this is due to the fact that the quartz generator in the smartphone is not perfectly accurate and has an error.

Is "Airplane" mode off"|Is there any internet access (to check the exact time)|Is the time zone chosen correctly?|Are important reminders (alarm clocks, calendar events) saved)-->

3.Why Xiaomi’s Time is Stuck: 7 Reasons and Solutions

If your Xiaomi is constantly getting lost, the reasons may be both software and hardware.

Problem.Possible causeDecision
Time is 3-5 minutes behind.Failure of the NTP service or blocking by a firewallReset network settings or disable VPN
Dates reset after resetDamaged firmware or failure of the RTC (Real-Time Clock) moduleUpdate the firmware or perform a reset to factory settings
The clock is 10+ minutes fast.Hardware timer malfunction (rarely)Contact the service center for diagnosis
Time goes down when you turn on "In the plane" modeSystem services conflictTurn off automatic synchronization before activating the mode

One of the hidden causes of failures may be a conflict with battery-saving applications such as Security or Battery Saver, which sometimes block background activity of system services responsible for time synchronization. To check this, temporarily turn off battery optimization for the Settings application.

Never lost it.|Rarely (once every few months)|Frequently (once a week)|Constantly (daily)-->

Change of time server (for experienced users)

Xiaomi uses Google's NTP servers by default (time.google.com) or Xiaomi (time1.cloud.miui.com), if you suspect that the problem is server-related, you can change them manually, and this requires access to the developer's hidden settings:

  1. Activate Developer Mode: Go to Settings β†’ About Phone and click on MIUI Version 7 times.
  2. Return to the main settings menu and open Additional β†’ for developers.
  3. Find NTP Servers (could be called Network Time Server) and enter an alternative address, such as pool.ntp.org en.pool.ntp.org time.windows.com
  4. Save the changes and restart the device.

If the servers point NTP It is not in the developer menu, which means that your version is not available. MIUI It doesn't support manual server change, so you can try setting the time through the server. ADB-We will discuss this in the next section).

What is NTP and how does it work?
NTP (Network Time Protocol) is a network protocol for synchronizing an internal computer or smartphone clock with reference time servers. synchronization accuracy over NTP is up to a few milliseconds, but depends on the stability of the Internet connection. Xiaomi uses its own NTP servers, but they can sometimes be overloaded, leading to time update delays.

5. Setting time through ADB (for advanced)

If standard methods don't work, you can set the time via Android Debug Bridge (ADB), which is suitable for users who are familiar with the command line.

  • πŸ–₯️ Computer with drivers installed ADB and Fastboot.
  • πŸ“± Initiated Debugging Mode USB smartphone.
  • πŸ”Œ USB-cable (preferably original).

Instructions for setting time through ADB:

  1. Connect the phone to your computer and confirm the debugging permission.
  2. Open the command line (or Terminal) macOS/Linux) Enter adb shell su date -s YYYYMMDD.HHMMSS where YYYYMMDD.HHMMSS β€” The desired date and time in the format of one month-day. hour-minutes. 15 may 2026 year-end, 14:30:00, team will be: date -s 20260515.143000
  3. Reboot the device with the reboot command.

⚠️ Attention: Use ADB If your phone is not rooted, the su command will not work, so you can try an alternative method using settings put, but it is less reliable.

To reset the system clock to factory settings via ADB, use the command:

adb shell settings delete global auto_time

6. Hardware timer (RTC) verification

If time is lost even after resetting settings and updating the firmware, the problem may lie in the hardware module. RTC (Real-Time Clock -- this chip is responsible for counting down time even when the phone is off. RTC:

  • ⏱️ Time is reset to January 1, 1970 after the battery is completely discharged.
  • πŸ”‹ Watches start to rush or lag after battery replacement.
  • πŸ”„ Date and time are lost when rebooting in Fastboot.

You can check the work of RTC using the engineering menu:

  1. Type the code ##4636## on your phone keyboard.
  2. Select the Battery Information item.
  3. Check the RTC time setting – if it is very different from the current time, the module is faulty.

⚠️ Attention: Malfunction RTC Sometimes the problem is solved by replacing the battery (if it is swelling and pressing on the motherboard) or flashing the module through the motherboard. EDL-However, most of the time, repairs are required at the service center.

7. Frequent questions and errors

Let’s look at the typical situations that Xiaomi users face when setting up their time:

Why did the MIUI update take 3 hours off?
This is due to the change in time zone settings in the new firmware version. Most often occurs when upgrading from MIUI 12 to MIUI 13/14, when the system resets the default region to Beijing (UTC+8). Solution: manually set the correct time zone in the settings.
Can you set the time to within milliseconds?
Xiaomi’s standard settings don’t allow you to set the time to milliseconds, but you can use third-party apps like ClockSync or Atomic Clock. They synchronize with atomic clocks and provide accuracy up to Β±0.1 seconds.
Why does the alarm go off on time, even though the time is right?
The problem may be battery optimization. Check to see if the watch app (com.android.deskclock) is added to the restricted list. Also make sure the alarm settings have the "Accurately Activate" option enabled (available on MIUI 14).
How to sync time on Xiaomi with Windows 10/11?
To synchronize the time between Xiaomi and your Windows computer, use a Mi Account or third-party services like Google Account. An alternative way is to install Mi PC Suite on your PC and enable the option β€œData Sync” in your connection settings.

If none of these methods worked, we recommend you to reset your settings completely (Settings β†’ About Phone β†’ Reset) or contact a Xiaomi authorized service center. In rare cases, the problem may be due to a hardware failure of the board, and its elimination will require professional diagnosis.

πŸ’‘

Before resetting your settings, save important data: time, alarm clocks, and calendar events are not restored from a MIUI backup!