diff --git a/client/space_lua/stdlib/os.ts b/client/space_lua/stdlib/os.ts index 320a9972..abd4b02a 100644 --- a/client/space_lua/stdlib/os.ts +++ b/client/space_lua/stdlib/os.ts @@ -137,6 +137,10 @@ export const osApi = new LuaTable({ // Day of the week "%A": () => date.toLocaleString("en-US", { weekday: "long" }), "%a": () => date.toLocaleString("en-US", { weekday: "short" }), + "%u": () => { + const dow = date.getDay(); + return "" + (dow === 0 ? 7 : dow); + }, "%w": () => "" + date.getDay(), // Day of the year "%j": () => {