user config: add time format #307

This commit is contained in:
end-4
2024-03-06 15:27:41 +07:00
parent da338dbc61
commit 239231b5cf
4 changed files with 42 additions and 35 deletions
@@ -218,7 +218,7 @@ export default ({
let notifTime = '';
const messageTime = GLib.DateTime.new_from_unix_local(notifObject.time);
if (messageTime.get_day_of_year() == GLib.DateTime.new_now_local().get_day_of_year())
notifTime = messageTime.format('%H:%M');
notifTime = messageTime.format(userOptions.time.format);
else if (messageTime.get_day_of_year() == GLib.DateTime.new_now_local().get_day_of_year() - 1)
notifTime = 'Yesterday';
else