update time
This commit is contained in:
@@ -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()}
|
||||
/>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user