You are not logged in.

#1 2014-07-03 00:07:22

linc186
Member
Registered: 2013-03-22
Posts: 33

Problem with date

Hi,

I have the localtime set to the proper timezone, and timedatectl outputs the correct time in the 24 hour format. In my bar-aint-recursive configuration I have date outputting the time, and it does so correctly in the 24 hour clock, but if I set it to the 12 hour clock (I prefer it) it is two hours slow. I have no clue what the problem is. Any help is appreciated, thank you!

Offline

#2 2014-07-03 00:22:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Problem with date

What's your timezone? UTC +2? Post the output of 'timedatectl'.

I'm not familiar with bar-aint-recursive, can you post the configuration you're using?
https://wiki.archlinux.org/index.php/Bar-aint-recursive

Offline

#3 2014-07-03 00:56:13

linc186
Member
Registered: 2013-03-22
Posts: 33

Re: Problem with date

karol wrote:

What's your timezone? UTC +2? Post the output of 'timedatectl'.

I'm not familiar with bar-aint-recursive, can you post the configuration you're using?
https://wiki.archlinux.org/index.php/Bar-aint-recursive

Timezone for the hwclock is set to UTC, while the localtime is set to my zone.

timedatectl:

       Local time: Wed 2014-07-02 15:56:20 PDT
  Universal time: Wed 2014-07-02 22:56:20 UTC
        RTC time: Wed 2014-07-02 22:56:20
       Time zone: //this is set to my zone, it outputs properly
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  Sun 2014-03-09 01:59:59 PST
                  Sun 2014-03-09 03:00:00 PDT
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  Sun 2014-11-02 01:59:59 PDT
                  Sun 2014-11-02 01:00:00 PST

bar-aint-recursive (the relevant part):

\f3{execi 1 date +'%a %b %d %r'}

Last edited by linc186 (2014-07-03 00:57:25)

Offline

Board footer

Powered by FluxBB