Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to display the UTC datetime ? #16

Open
ewjoachim opened this issue Mar 13, 2024 · 2 comments
Open

Is there a way to display the UTC datetime ? #16

ewjoachim opened this issue Mar 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ewjoachim
Copy link

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

@KEIII KEIII added the enhancement New feature or request label Mar 13, 2024
@amerryma
Copy link

amerryma commented Aug 7, 2024

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

@KEIII
Copy link
Owner

KEIII commented Aug 8, 2024

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/panel-date-format@keiii.github.com/extension.js
Then Alt+F2 type r to restart gnome-shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants