summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FixTime/fixtime.py2
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")