# Any Way to Get a 24 Hour Digital Clock On Rocky Linux 8.6? \[SOLVED\]

**URL:** https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465
**Category:** Rocky Linux Help & Support
**Created:** [October 6, 2022, 10:49am UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465 "2022-10-06T10:49:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![desercat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/desercat/32/1192_2.png) [@desercat](https://forums.rockylinux.org/u/desercat)
#### Post date: [October 6, 2022, 10:49am UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/1 "2022-10-06T10:49:51Z")

</div>

Well I continue to configure aznd polish RL 8.6 on the 1 TB MP 600 NVMe 4th Gen Drive.

Yesterday I noticed that my Digital Clock was in 12 hour AM / PM output . At some point I noticed that the time was WAY OFF. So I tried to reset it. So I changed the battery (which holds Date and Time among other things) . Only now I discovered I was supposedly located in Zurich Swiss!!! I was no longer in Arizona!!. I tried to run dnf update, only NOW it refused to up date my machine. Trying to “FIX” the problem via icon from the “Application Launcher” was a NoGo. Next I went hunting for a CL command… and found one… at least sort of in that it got me “back” to Arizonaz.

The first thing you have to do is turn OFF Chronyd [systemctl stop chronyd]

The NEXT command is one you should bookmark or remember is _timedatectl set-time_ [enter-the-time; enter the date; or enter ‘date and time’ for both Example ‘2021-10-11 12:15:25’]

Finally there is timedatectl list-timezones followed by timedatectl set-timezone  
Example: timedatectl set-timezone America/Phoenix

While this finally straightened out the time and location problem the time is still printed out such as 3:42 AM – vs – 03:42:26. Does anyone know how to switch from the 12 hour AM / PM format in Rocky Linux to the 24 Hour Format?? This was how I got into trouble. There does not _seem_ to be a 24 hour format selection in Rocky Linux 8.6 – or at least one _I_ could find

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [October 6, 2022, 11:21am UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/2 "2022-10-06T11:21:35Z")

</div>

I would say “Settings”, “Time & Date”, “Time Format” that has both “12-hour” and “24-hour” options.  
Alas, that is in Gnome 40 of EL9. I have no recollection of what options Gnome 3 of EL8 had.

There is no reason to stop chronyd. It does tune the time quite quickly (unlike ntpd – ntp service did call ‘ntpdate’ first to oneshot time about right before starting the ntpd).  
The `timedatectl set-timezone America/Phoenix` was what you had to do.

You do have a question now though: what did change you timezone setting (and output format)?

---

<div class="post-metadata">

### Author: ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)
#### Post date: [October 6, 2022, 11:30am UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/3 "2022-10-06T11:30:44Z")

</div>

I second what @jlehtone says. Assuming when you say:

> [@desercat](#):
>
> There does not _seem_ to be a 24 hour format selection in Rocky Linux 8.6 – or at least one _I_ could find

that you mean in the graphical environment, then you will configure it in the Gnome settings, or KDE settings, or whatever desktop you use. This should exist for Gnome 3 as well as 4. The console is a different matter, which requires using localectl. I’ve no idea why en\_US or by configuring a US timezone seems to default to AM/PM instead of 24 hour. I guess there is a reason for it.

Unless you need to configure it on the console, none of the timedatectl, localectl commands need to be used, the rest can be done in the GUI configuration tools.

---

<div class="post-metadata">

### Author: ![desercat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/desercat/32/1192_2.png) [@desercat](https://forums.rockylinux.org/u/desercat)
#### Post date: [October 6, 2022, 3:59pm UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/4 "2022-10-06T15:59:22Z")

</div>

“Unless you need to configure it on the console, none of the timedatectl, localectl commands need to be used, the rest can be done in the GUI configuration tools.”

The GUI configuration Tools did not work – trust me that was where I tried FIRST and the way I have done it for 22+ years. Indeed I _suspect_ that something in some aspect of the GUI config tools was what was broken which is probably how I ended up in Zurich, Swiss. just by setting the time. This could also be a KDE 5 problem. The ONLY way I was able to PARTIALLY SOLVE the problem was to resort to the Konsole – at least doing _that_ I was able to get back to Arizona, as well as set the correct 12 hour time.

After I solve a problem in CentOS 7.9 where I get the following message: " Error: Invalid version flag: or ".  
“or” what ? Until I SOLVE THAT PROBLEM my machine REFUSES to update. I _suspect_ this may have something to do with SkypeforLinux , which suddenly went out into the weeds. Then again Skype may have been a victim of what ever caused the : " Error: Invalid version flag: or " to appear. I swear my apartment must be filled with Gremlins. Errors I have NEVER seen before have suddenly appeared by the boatload.

After I deal with the above problem as leopard is still my current WS, _then_ I may shut down RL 8.6 / KDE5 and bring it up in RL 8.6 / GNOME and at least PEEK to see if I could _possibly_ set the 24 hour clock from there.

“Something Wicked this way comes.”

D’ Cat

P.S. Does anyone have an anti-Gremlin spell I can cast to get rid of these Gremlins?

---

<div class="post-metadata">

### Author: ![desercat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/desercat/32/1192_2.png) [@desercat](https://forums.rockylinux.org/u/desercat)
#### Post date: [October 6, 2022, 5:34pm UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/5 "2022-10-06T17:34:38Z")

</div>

[jlehtone](https://forums.rockylinux.org/u/jlehtone)

> Blockquote

I would say “Settings”, “Time & Date”, “Time Format” that has both “12-hour” and “24-hour” options.  
Alas, that is in Gnome 40 of EL9. I have no recollection of what options Gnome 3 of EL8 had.

> Blockquote

Yep went _there_ too. Only 12 hour format found. Now this _may_ sound strange, but GNOME – or any of its decendents – does not have a Digital Clock by default, though a “Time” does appear in the dead upper center. Clicking on it does zero.

As to what I _did_… Good question. I _might_ of accidentally hit something with my rather shaky hands that hijacked me to Zurich, Swiss.

This remains a problem I need to research. For the time being I guess I can live with a 12 hour clock – at least I am in the right Country, Right State, and have the right Time. Still I use to using a 24 hour military clock (though hard to believe that was 52 years ago) – Some things simply graft themselves onto your mind if you used them every day. I _THINK_ in a 24 hour clock cycle, a 12 hour clock is simply something that needs to be converted.

---

<div class="post-metadata">

### Author: ![desercat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/desercat/32/1192_2.png) [@desercat](https://forums.rockylinux.org/u/desercat)
#### Post date: [October 6, 2022, 7:59pm UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/6 "2022-10-06T19:59:49Z")

</div>

Mark this [SOLVED]!!!

1. _RIGHT CLICK_ on the Digital Clock on the _Panel_

2. Find \* CONFIGURE DIGITAL CLOCK\* and _LEFT CLICK_ on this.

3. Find _TIME DISPLAY_ This is marked _USE REGION DEFAULTS_ to the _Right_ of this is a _DOWN ARROW_ Now _CLICK ON THE DOWN ARROW_ This will give you a Drop Down Menu.

4. One Part of the Drop Down Menu says " _12-HOUR_ "; the other entry says “_24-HOUR_”. Select _24-HOUR_ Now at the BOTTOM of the MENU you will see APPLY with a Check Mark next to it. _Click On_ APPLY and it will Gray out.

5. Next to the Apply Box, there is another Box marked _OK_ with a Check Mark next to it. _Click On_ OK. Now the _DIGITAL CLOCK_ on the PANEL will now be in 24 HOUR units.

6. If you wish to show the time with _Seconds_, go back to the _DIGITAL CLOCK_ on the PANEL and  
_RIGHT CLICK_ on it. You will get the familiar “_CONFIGURE DIGITAL CLOCK SETTINGS_” Drop Down Menu. There are some blocks, some EMPTY one of which says \* SHOW SECONDS\* , now _CLICK ON THE EMPTY SHOW SECONDS BOX_ and a CHECK MARK will now fill the Empty Show Seconds Box. Now go back and _CLICK ON_ the A) _APPLY_ and be B) _OK_ boxes and now the seconds will be added to your time.

7. Finally if this FAILS, there is a box that says, " CHANGE REGIONAL SETTINGS " amd that _might_ free up the box that is marked _“USE REGION DEFAULTS”_

That’s It!! Mark this [SOLVED]!!

* * *

\*BTW This works in _KDE PLASMA 5.23.3_

* * *

---

<div class="post-metadata">

### Author: ![schroedingersdog](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/schroedingersdog/32/1519_2.png) [@schroedingersdog](https://forums.rockylinux.org/u/schroedingersdog)
#### Post date: [October 7, 2022, 11:09am UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/7 "2022-10-07T11:09:21Z")

</div>

Hi @desercat

first: Good to see you back. 😉

Now, some parts of this thread are not clear to me. What Desktop Environment are you running? I’m on RL 8.6 with Gnome (the upgraded-since-RL-8.5 whatever version it is now) and my “upper center time” isn’t dead at all: The calendar / notifications panel appears when I click on it. Gnome default behavour so to say.

And from what have seen since the mid-80s (not kidding, I’m old) any location that is in the US defaults to regional settings of decimal-point instead of comma, Imperial not Metric system, Fahrenheit not Celsius temperature and first of all: 12hr “AM/PM” time format instead of the so-called “military” 24hr format.  
Anyway, yes I know it’s fixed for you, but looking at the fiddling it took you to get things going your way, I was wondering what could be “wrong” with your setup. Are you using any exotic gnome extensions? Did you “hack” settings somewhere using stuff like dconf-editor?

_BTW: I’m having “topicons” sitting in the center (right next to the center time) so there’s ways to do more in the center area of gnome’s top panel._

Cheers, Thomas

---

<div class="post-metadata">

### Author: ![desercat](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/desercat/32/1192_2.png) [@desercat](https://forums.rockylinux.org/u/desercat)
#### Post date: [October 8, 2022, 3:37pm UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/8 "2022-10-08T15:37:48Z")

</div>

Good to see you too.  
No. I am running KDE Plasma 5.23.3. I am truly not too familiar with GNOME – more a backup DE in case KDE goes out into the weeds.

No I am not quite as old as you – turned 70 in April. I served in the Army during Viet Nam, and ran a switchboard ergo the 24 hour clock. We ran 24/7/365 and we _had_ to be ready for transport at xyz time, and I alway cought graveyard shift. None of this AM / PM stuff. We actually had a 24 hour clock in the switchboard room we referred to. I have continued to _THINK_ in that way. Likewise as an EX-Research Scientist I use both Metric _and_ Imperial . As to temperature I still use F degrees – when it is 110 in AZ it is HOT!!!

As to my [SOLVE], at lot of my memory right now is like Swiss Cheese as well as eyesight wherein I see double. The Eye doctor refuses to prescribe a new set of glasses as my vision is changing _that_ FAST – he says that it will be 3-6 MONTHS before it stahblizes. If I want to read I cover one eye with a patch – ARGG Matey.

Best Fishes,  
D’ Cat

---

<div class="post-metadata">

### Author: ![berlin](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@berlin](https://forums.rockylinux.org/u/berlin)
#### Post date: [April 1, 2023, 12:10pm UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/9 "2023-04-01T12:10:31Z")

</div>

Here is the solutition for cmd only user:

```auto
localectl set-locale LC_TIME=C

```

It will set Time format independent with locale.  
The setting works after re-login or reboot(reboot for some auto started Jobs in rc.local).

---

<div class="post-metadata">

### Author: ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)
#### Post date: [August 25, 2023, 3:19am UTC](https://forums.rockylinux.org/t/any-way-to-get-a-24-hour-digital-clock-on-rocky-linux-8-6-solved/7465/10 "2023-08-25T03:19:34Z")

</div>


