gnome-shell-panel-date-format icon indicating copy to clipboard operation
gnome-shell-panel-date-format copied to clipboard

Is there a way to display the UTC datetime ?

Open ewjoachim opened this issue 1 year ago • 2 comments

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()

ewjoachim avatar Mar 13 '24 14:03 ewjoachim

This is exactly what I was hoping for. Did you ever find a solution to this? Either with this extension or maybe something else?

amerryma avatar Aug 07 '24 15:08 amerryma

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

KEIII avatar Aug 08 '24 10:08 KEIII

Please take a look https://extensions.gnome.org/extension/4655/date-menu-formatter/

KEIII avatar Oct 10 '25 16:10 KEIII