Say at the strftime call why the weekday stays English

This commit is contained in:
2026-10-02 14:49:31 +02:00
parent 96a3f845d1
commit ec3b584ced
3 changed files with 1 additions and 5 deletions
+1
View File
@@ -99,6 +99,7 @@ def reset_suffix(at: datetime.datetime, now: datetime.datetime) -> str:
left = f"{seconds // 3600}h{seconds % 3600 // 60}m"
else:
left = f"{seconds // 60}m"
# %a stays English on every machine; setlocale would make this read process-wide state.
clock = at.strftime("%H:%M" if at.date() == now.date() else "%a %H:%M")
return f" {DIM}{left} left ({clock}){RESET}"