[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The date command for time is incorrect
From: |
Lawrence Velázquez |
Subject: |
Re: The date command for time is incorrect |
Date: |
Sat, 03 Jun 2023 08:51:12 -0400 |
User-agent: |
Cyrus-JMAP/3.9.0-alpha0-447-ge2460e13b3-fm-20230525.001-ge2460e13 |
On Sat, Jun 3, 2023, at 12:40 AM, Budi wrote:
> 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)
Given this...
> Date: Sat, 3 Jun 2023 04:40:58 +0000
...it looks like something is forcing date(1) to use UTC. Perhaps
you have the TZ environment variable set?
In any case this isn't really about bash.
--
vq