{"id":46672339,"url":"https://github.com/omaranos517/autosync-windowstime","last_synced_at":"2026-03-08T22:03:07.461Z","repository":{"id":335506117,"uuid":"1143172349","full_name":"omaranos517/AutoSync-WindowsTime","owner":"omaranos517","description":"Ultimate Windows Time Sync Tool – A robust Python/CLI utility to fix Windows clock desync issues caused by Dual Boot (Linux/Windows), dead CMOS batteries, or W32Time service failures. Featuring auto-admin elevation and smart retry logic.","archived":false,"fork":false,"pushed_at":"2026-03-06T21:44:20.000Z","size":736,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-06T23:48:36.882Z","etag":null,"topics":["automation","python","system-utility","time-sync","windows"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omaranos517.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-27T08:53:34.000Z","updated_at":"2026-03-06T21:44:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/omaranos517/AutoSync-WindowsTime","commit_stats":null,"previous_names":["omaranos517/autosync-windowstime"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/omaranos517/AutoSync-WindowsTime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaranos517%2FAutoSync-WindowsTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaranos517%2FAutoSync-WindowsTime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaranos517%2FAutoSync-WindowsTime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaranos517%2FAutoSync-WindowsTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omaranos517","download_url":"https://codeload.github.com/omaranos517/AutoSync-WindowsTime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omaranos517%2FAutoSync-WindowsTime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30274876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","python","system-utility","time-sync","windows"],"created_at":"2026-03-08T22:03:06.351Z","updated_at":"2026-03-08T22:03:07.452Z","avatar_url":"https://github.com/omaranos517.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"right\"\u003e\n    \u003cimg height=\"70\" src=\"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-original.svg\" /\u003e\n\u003c/p\u003e\n\n# 🕒 TimeSync\n\n**The definitive solution for Windows time desynchronization.**  \nPerfect for Dual-Boot users (Windows + Linux) and systems with CMOS battery issues.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/omaranos517/AutoSync-WindowsTime/releases/latest\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/⬇%20Download-Latest%20Release-blue?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## ❓ The Problem\n\nIf you dual-boot **Windows and Linux**, you've probably noticed that your Windows clock becomes incorrect after switching operating systems.\n\nThis happens because:\n\n- 🐧 Linux stores the hardware clock (RTC) in **UTC**\n- 🪟 Windows expects the RTC in **Local Time**\n\nThis mismatch causes Windows to display the wrong time after rebooting from Linux.\n\n**TimeSync bridges this gap** by force-synchronizing Windows time using official Microsoft time services immediately after login.\n\n---\n\n## ✨ Key Features\n\n- ✅ **One-Click Repair**  \n  Restores and properly configures the `w32time` Windows Time Service.\n\n- 🌐 **Smart Auto-Sync**  \n  Automatically retries synchronization until an internet connection is available.\n\n- 🏢 **System Integration**  \n  Registers as a professional application inside Windows **Apps \u0026 Features**.\n\n- 💻 **Global Command Access**  \n  Run `timesync` from any CMD or PowerShell window.\n\n- 🔐 **Silent Background Execution**  \n  Uses Windows Task Scheduler with **Highest Privileges** for seamless startup sync.\n\n- 🔔 **Native Windows Notifications**  \n  Uses Windows Toast Notifications to inform you about sync status.\n\n---\n\n## 🚀 Getting Started\n\n### 🔧 Installation\n\n1. Download the latest installer from Releases (`TimeSync_\u003cversion\u003e_Setup.exe`).\n2. Run the installer as Administrator and complete the setup wizard.\n3. (Optional) Keep **Run TimeSync at Windows startup** enabled during setup.\n\nThe installer will:\n\n- Install TimeSync to `C:\\Program Files\\TimeSync`\n- Add the install directory to the system `PATH`\n- Register the app in Windows Apps \u0026 Features\n- Optionally enable:\n  - Startup sync task\n  - Resume-from-sleep sync task\n\n---\n\n## 💻 Usage\n\n### GUI Mode\n\n- Open **TimeSync** from the Start Menu, or run `timesync` with no arguments.\n- Use the GUI to:\n  - Sync immediately\n  - Enable/disable Startup sync\n  - Enable/disable Sync on Wake (Resume)\n  - Enable/disable Notifications\n  - Open the log file\n\n### CLI Mode\n\nOpen **CMD** or **PowerShell** and use:\n\n| Command | Description |\n|----------|------------|\n| `timesync help` / `timesync commands` | Show all available commands |\n| `timesync now` | Sync time immediately |\n| `timesync status` | Show admin, startup, resume, and notification status |\n| `timesync startup status` | Check startup sync task status |\n| `timesync startup enable` | Enable sync at Windows login |\n| `timesync startup disable` | Disable sync at Windows login |\n| `timesync resume status` | Check sync-on-wake task status |\n| `timesync resume enable` | Enable sync after sleep/hibernate wake |\n| `timesync resume disable` | Disable sync after sleep/hibernate wake |\n| `timesync notify status` | Check notification status |\n| `timesync notify enable` | Enable desktop notifications |\n| `timesync notify disable` | Disable desktop notifications |\n| `timesync logs` | Open the log file |\n| `timesync about` | Show app information |\n| `timesync version` | Show current version |\n\nAdvanced/internal commands:\n\n- `timesync now --auto` (used by scheduled tasks)\n- `timesync cancel`\n- `timesync disable-warning`\n\n---\n\n## 🛠 How It Works\n\nTimeSync does not simply \"change the time\".\n\nIt executes a controlled sequence of official Windows commands:\n\n### 1️⃣ Service Configuration\nSets the Windows Time Service (`w32time`) to start automatically.\n\n### 2️⃣ Service Reset\nStops and restarts the time service to ensure a clean state.\n\n### 3️⃣ NTP Peer Configuration\nConfigures reliable official time servers:\n\n- `time.google.com`\n- `pool.ntp.org`\n- `time.windows.com`\n\n### 4️⃣ Forced Resync\nTriggers an immediate hardware clock update using: `w32tm /resync`\n\n---\n\n## 🔒 Safety \u0026 Transparency\n\n- 🛑 **No permanent background process**  \n  The app runs, syncs, and exits. No memory waste.\n\n- 🧰 **Official Windows Methods Only**  \n  Uses:\n  - `sc`\n  - `net`\n  - `w32tm`\n  - Windows Task Scheduler\n\n---\n\n## 🎯 Ideal For\n\n- Dual-boot users (Windows + Linux)\n- Systems with CMOS battery issues\n- Users experiencing Windows time drift\n- Developers who switch OS frequently\n- Anyone who wants automatic, reliable time correction\n\n---\n\n## 👤 Author\n\nOmar Anoss  \n\n---\n\n⭐ If this project helped you, consider starring the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomaranos517%2Fautosync-windowstime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomaranos517%2Fautosync-windowstime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomaranos517%2Fautosync-windowstime/lists"}