diff options
| author | 5epi0l <91630053+5epi0l@users.noreply.github.com> | 2025-11-17 11:40:27 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-17 11:40:27 +0530 |
| commit | 937478e00453ef83c2a7c29bfe33bc2400ac9303 (patch) | |
| tree | 386401f8e16ade0fef49303dcd2a5de4818b3537 | |
| parent | 1ac503028bf0f3869ab1fd682c25de12ef3b2fbf (diff) | |
Update fixtime.py
| -rw-r--r-- | FixTime/fixtime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FixTime/fixtime.py b/FixTime/fixtime.py index ca2f0b2..cfbdd5a 100644 --- a/FixTime/fixtime.py +++ b/FixTime/fixtime.py @@ -120,7 +120,7 @@ def sync_time(time_str): log("[*] Disabling NTP", True) subprocess.run(["sudo", "timedatectl", "set-ntp", "off"], check=True, capture_output=True) log(f"[*] Setting time to {time_str}", True) - subprocess.run(["sudo", "date", "-s", time_str], check=True, capture_output=True) + subprocess.run(["sudo", "date", "-u", "-s", time_str], check=True, capture_output=True) print("[+] Time synced successfully") except: print("[-] Failed to sync time. Run with sudo") |
