You are not logged in.

#1 2013-02-06 17:05:15

w201
Member
Registered: 2012-10-04
Posts: 289

[SOLVED] Can't Get the Right Time to Display

Hi guys-

Can't get my clock to display the right time. This is the output of timedatectl status:

      Local time: Wed 2013-02-06 06:55:30 EST
  Universal time: Wed 2013-02-06 11:55:30 UTC
        RTC time: Wed 2013-02-06 11:55:30
        Timezone: America/New_York (EST, -0500)
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2012-11-04 01:59:59 EDT
                  Sun 2012-11-04 01:00:00 EST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2013-03-10 01:59:59 EST
                  Sun 2013-03-10 03:00:00 EDT

On the east coast right now the time is noon, but clock is off by 7 hours. Anyone know how to fix this?

One thing I forgot to mention.... BIOS shows the right time.

Thanks

Last edited by w201 (2013-02-07 16:37:55)

Offline

#2 2013-02-06 17:24:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Can't Get the Right Time to Display

No, I suspect BIOS shows the *wrong* time.  Your hardware clock should be set to UTC, but it is currently set to your local time.

Do you dual boot with Windows?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-02-06 17:28:03

w201
Member
Registered: 2012-10-04
Posts: 289

Re: [SOLVED] Can't Get the Right Time to Display

I actually looked in BIOS and it does how the right time...but I'll double check. Nope, just arch linux. How exactly do I set the hardware clock to UTC, I thought I did that during the install.

***EDIT***

BIOS time & date is correct. At the time I checked it was 12:36 Feb 6, 2013

If I issue this command, "timedatectl set-local-rtc 0" will that correct my localtime to UTC?

Last edited by w201 (2013-02-06 17:43:20)

Offline

#4 2013-02-06 18:22:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Can't Get the Right Time to Display

No, your bios time is *incorrect*.  Your bios is set to localtime.

You have two three choices, and for a single boot system only the first would be recommended:
1) Set you bios time to the correct UTC time (18:24 at the time of my posting) and all your problems will be fixed.
2) Set your system to assume the hardware clock is on local time - I don't know off hand how to do this.
3) Set your time zone to a wrong zone to counteract the wrong setting of the hardware clock (this would just be silly).

To do number one, you can use the date command to set the time and date, and the hwclock command to set the system time to hardware clock.  This is all in the time/date wiki page.

Alternately, you can install something like ntpd (extra/ntp) and set that up to keep your hardware clock in sync.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-02-06 18:30:16

w201
Member
Registered: 2012-10-04
Posts: 289

Re: [SOLVED] Can't Get the Right Time to Display

Okay, let me try a few of your suggestions and I'll post back shortly.

Offline

#6 2013-02-06 23:01:52

w201
Member
Registered: 2012-10-04
Posts: 289

Re: [SOLVED] Can't Get the Right Time to Display

Okay...so I fixed it....is it just me or is setting the time super confusing? I admit I came from linux mint, but goddamn! I think I'm ready to tackle relativity and superstring theory now!

And it's still not exactly the way I want it because it's showing military time instead of the standard format, but whatever, at least I got it working.

Offline

#7 2013-02-07 02:19:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Can't Get the Right Time to Display

w201 wrote:

it's showing military time instead of the standard format

This is simply set in whatever tool you use to display the time.  Is this for a WM/DE widget, or where?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2013-02-07 02:24:41

w201
Member
Registered: 2012-10-04
Posts: 289

Re: [SOLVED] Can't Get the Right Time to Display

Trilby wrote:
w201 wrote:

it's showing military time instead of the standard format

This is simply set in whatever tool you use to display the time.  Is this for a WM/DE widget, or where?

I'm using awesome as my wm. The first place  that came to mind is rc.lua, but I don't see anything related to time in my config.


***EDIT***

It's the mytextclock widget.... I'll mark the thread as solved once I get it to work.

Last edited by w201 (2013-02-07 02:34:11)

Offline

Board footer

Powered by FluxBB