user config: add date format #307

This commit is contained in:
end-4
2024-03-06 15:33:03 +07:00
parent 239231b5cf
commit 2ffd02f739
4 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -45,9 +45,9 @@ const BarClock = () => Widget.Box({
}),
Widget.Label({
className: 'txt-smallie',
label: GLib.DateTime.new_now_local().format("%A, %d/%m"),
setup: (self) => self.poll(5000, label => {
label.label = GLib.DateTime.new_now_local().format("%A, %d/%m");
label: GLib.DateTime.new_now_local().format(userOptions.time.dateFormatLong),
setup: (self) => self.poll(userOptions.time.dateInterval, (label) => {
label.label = GLib.DateTime.new_now_local().format(userOptions.time.dateFormatLong);
}),
}),
],