Keep the reset's weekday English on every machine

This commit is contained in:
2026-10-02 14:48:24 +02:00
parent 3da416bd70
commit 96a3f845d1
3 changed files with 5 additions and 5 deletions
-5
View File
@@ -2,7 +2,6 @@
import dataclasses
import datetime
import json
import locale
import math
import os
import subprocess
@@ -154,10 +153,6 @@ def main() -> str:
raw = None
if not isinstance(raw, dict):
return f"{RED}warning: statusline.py's input is not a JSON object{RESET}"
try:
locale.setlocale(locale.LC_TIME, "")
except locale.Error:
pass
# Zone None: astimezone converts to the machine's own zone, daylight saving included.
status = parse(raw, None)
return render(status, current_branch(status.directory), os.environ.get("HOME", ""), datetime.datetime.now().astimezone())