gnome-shell-panel-date-format
gnome-shell-panel-date-format copied to clipboard
Is there a way to display the UTC datetime ?
I think it would be useful if there was a way to display the UTC datetime alongside with the localized datetime, but I believe it wouldn't just work with .format()
This is exactly what I was hoping for. Did you ever find a solution to this? Either with this extension or maybe something else?
You could try to hardcode https://github.com/KEIII/gnome-shell-panel-date-format/blob/master/extension.js#L55C35-L55C50 this way:
formatClockDisplay.set_text(new GLib.DateTime().format(format) + " utc: " + new GLib.DateTime().to_utc().format("%H:%M"));
Here is file you need to change
$HOME/.local/share/gnome-shell/extensions/[email protected]/extension.js
Then Alt+F2 type r to restart gnome-shell
Please take a look https://extensions.gnome.org/extension/4655/date-menu-formatter/