Keep the reset's weekday English on every machine
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user