I'm using Ubuntu 20.04 LTS. I want date and time in GNOME Shell's top bar to have the following format:
Sun Jun 13 07:26AM IST 2021
instead of the current:
Jun 13 12:53 PM
How can I achieve this?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
There are several extensions in the GNOME Shell Extensions website, but most of them are not actively supported anymore. I'm suggesting you to use the Panel Date Format extension, which works fine on Ubuntu 20.04 and is still maintained.
To customize your clock after installing the extension, follow these steps:
Open Extensions, find the Panel Date Format extension in the list and click the gear icon next to it.
You will be presented with this Preferences menu (image from the extension's GitHub repository):
In the Format textbox enter the following to get the time format you want:
%a %e %b %I:%M%p %Z %Y
You can find more info about the date time format syntax here (link also mentioned in the extension's preferences).
Restart GNOME Shell to ensure that the setting is applied by pressing Alt+F2, entering
r and pressing Enter.
Your panel's clock should now have the appearance you want!