You are not logged in.

#1 2026-07-05 15:07:54

pmtk_milk
Member
Registered: 2026-06-20
Posts: 9
Website

[SOLVED] ¿How i change the hour format?

Hi, I want to have the 12-hour format because 24-hour is confusing for me, and i having issues with time, like its 22:04 (10:04 PM) but is 8:04 AM
(Like 14 hours of difference), i tried timedatectl set-ntp false and timedatectl set-ntp true, changing manually the time (With timedatectl set-time). I have these issues since i installed Arch Linux in my PC. Any help helps smile
sorry for the bad english, i dont speak much english

EDIT: I just change the timezone, you have to go in the control panel > panels > panel 1 > clock, something like that

Last edited by pmtk_milk (2026-07-05 21:49:04)

Offline

#2 2026-07-05 15:29:08

teckk
Member
Registered: 2013-02-21
Posts: 588

Re: [SOLVED] ¿How i change the hour format?

¿How i change the hour format?

In what?

The output of date? Examples:

date +'%H:%m'
date +"%I:%M %p"
date +"%I:%M %P"
date +'%r'

printf? Example:

printf '%(%I:%M %p)T\n'

A window manager/desktop environment clock? Which one?

See:
man date
man printf
man <your desktop environment>

Last edited by teckk (2026-07-05 15:29:55)

Offline

#3 2026-07-05 15:39:19

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,246

Re: [SOLVED] ¿How i change the hour format?

ntp is responsible for keeping the system time in line with other clocks and uses Coordinated Universal Time (UTC) for this.

To determine what time you see on your screen timezones are used .

See https://wiki.archlinux.org/title/System_time#Time_zone

In order to set a time format you need to configure LC_TIME .

Note that DEs may offer timezone and format settings bnut /etc/locale.conf is used by everything on the system and tends to be the best place to set such things.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2026-07-05 15:41:19

pmtk_milk
Member
Registered: 2026-06-20
Posts: 9
Website

Re: [SOLVED] ¿How i change the hour format?

teckk wrote:

¿How i change the hour format?

In what?

The output of date? Examples:

date +'%H:%m'
date +"%I:%M %p"
date +"%I:%M %P"
date +'%r'

printf? Example:

printf '%(%I:%M %p)T\n'

A window manager/desktop environment clock? Which one?

See:
man date
man printf
man <your desktop environment>

The system one, im not even a programmer. I was going to say the taskbar one but, i think that sounds stupid tongue.

Im using XFCE if that matters

Offline

#5 2026-07-05 16:57:45

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 720

Re: [SOLVED] ¿How i change the hour format?

pmtk_milk wrote:

Im using XFCE if that matters

https://docs.xfce.org/xfce/xfce4-panel/clock

Offline

Board footer

Powered by FluxBB