update time

This commit is contained in:
wt
2025-03-13 15:21:36 +07:00
parent df87cfe22e
commit 4439ccd7bb
+2 -2
View File
@@ -1,6 +1,6 @@
import { Variable, GLib } from "astal"
export default function Time({ format = "%H:%M - %A %e" }) {
export default function Time({ format = "%A %e, %H:%M" }) {
const time = Variable<string>("").poll(1000, () =>
GLib.DateTime.new_now_local().format(format)!)
@@ -9,4 +9,4 @@ export default function Time({ format = "%H:%M - %A %e" }) {
onDestroy={() => time.drop()}
label={time()}
/>
}
}