diff options
author | wlodekm <[email protected]> | 2024-11-15 09:21:59 +0200 |
---|---|---|
committer | wlodekm <[email protected]> | 2024-11-15 09:21:59 +0200 |
commit | d51dbb974d83125f4bfb017188de6a013b7f746c (patch) | |
tree | 637032cbb0ca65514e872357b40906e16224cbda /v2/client.ts | |
parent | 94e55a524c2faf0bd2c3b2e5c765c156e911472b (diff) |
v2.1
Diffstat (limited to 'v2/client.ts')
-rw-r--r-- | v2/client.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/v2/client.ts b/v2/client.ts index 16358c8..3e09f7e 100644 --- a/v2/client.ts +++ b/v2/client.ts @@ -1,3 +1,4 @@ + import { Screen } from "./screen.ts"; import type { Text } from "./elements.ts"; import strftime from "./strftime.js"; @@ -35,7 +36,7 @@ export async function login(username: string, password: string) { screen.logs.push("INC: " + JSON.stringify(data)) if(data.cmd != "post") return; home.push(data.val); - const textHome: string[] = home.map(p => `[${strftime("%H:%M:%S")}] ${p.u}: ${p.p}`); + const textHome: string[] = home.map(p => `[${strftime("%H:%M:%S", new Date(p.t.e * 1000))}] ${p.u}: ${p.p}`); const homeElem: Text = screen.elements.get("home") as Text; homeElem.text = textHome.join("\n")+"\n"; screen.render() |