Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-06-03 04:38:32

almahdi
Member
Registered: 2020-07-04
Posts: 125

The date command for retrieving time is incorrect, different to panel

Why the date command for time is incorrect and different from the correct one on panel bar

$ date +%H
04

$ date +%I
04

while the correct is on panel bar which is 11 (real in 0..24 form, i.e. AM)

Please help this confusing trouble

Offline

#2 2023-06-03 10:15:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: The date command for retrieving time is incorrect, different to panel

Perhaps your system timezone is incorrect and you specified a timezone in the panel clock? What does the following return:

timedatectl

...and:

xfconf-query -c xfce4-panel -lv | grep $(xfconf-query -c xfce4-panel -lv | grep clock | awk '{print $1}')

What timezone are you in?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-06-03 13:37:46

almahdi
Member
Registered: 2020-07-04
Posts: 125

Re: The date command for retrieving time is incorrect, different to panel

TZSELECT

would solve it

Last edited by almahdi (2023-06-04 14:54:48)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 522.72 KiB (Peak: 530.45 KiB) ]