Xclock not displaying 24 hours

Asked by Robert christiansen

when I input the command
xclock -d -twentyfour -update 1

the Clock is still on AM,PM 12 hour mode.

is this normal ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu x11-utils Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Which Ubuntu release, which version of xclock?

What is the output of the commands

uname -a
lsb_release -crid
apt-cache policy x11-apps

Revision history for this message
Robert christiansen (ve3nte) said :
#2

uname -a
Linux TYANS5515 5.4.0-45-generic #49-Ubuntu SMP Wed Aug 26 13:38:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

apt-cache policy x11-apps
x11-apps:
  Installed: 7.7+8
  Candidate: 7.7+8
  Version table:
 *** 7.7+8 500
        500 http://ca.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
The output I get is
Sat 05 Sep 2020 05:13:34 PM

________________________________
From: <email address hidden> <email address hidden> on behalf of Manfred Hampl <email address hidden>
Sent: September 5, 2020 6:50 AM
To: <email address hidden> <email address hidden>
Subject: Re: [Question #692748]: Xclock not displaying 24 hours

Your question #692748 on x11-utils in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/x11-utils/+question/692748

    Status: Open => Needs information

Manfred Hampl requested more information:
Which Ubuntu release, which version of xclock?

What is the output of the commands

uname -a
lsb_release -crid
apt-cache policy x11-apps

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+source/x11-utils/+question/692748

You received this question notification because you asked the question.

Revision history for this message
Robert christiansen (ve3nte) said :
#3

the version of xclock is 1.0.9

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

1. Your output of the apt-cache command is weird. A version 7.7+8 of x11-utils on Ubuntu does not exist.

2. This seems to be a known problem, see
https://bugs.launchpad.net/ubuntu/+source/x11-apps/+bug/394430
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=352967

Apparently the program uses the settings of LC_TIME and ignores the -twelve or -twentyfour options, if your locale setting is different from the default 'C'.

LANG=C xclock -d -twentyfour -update 1

should work.

Can you help with this problem?

Provide an answer of your own, or ask Robert christiansen for more information if necessary.

To post a message you must log in.