You are not logged in.

#1 2014-12-03 22:59:37

erkexzcx
Banned
From: Kaunas
Registered: 2014-09-28
Posts: 77

[SOLVED] Local time and Universal time are different + inaccurate

hi everyone, this is what "timedatectl status" returns:

      Local time: Thu 2014-12-04 02:50:50 EET
  Universal time: Thu 2014-12-04 00:50:50 UTC
        RTC time: Thu 2014-12-04 00:50:51
       Time zone: Europe/Vilnius (EET, +0200)
     NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
      DST active: no
Last DST change: DST ended at
                  Sun 2014-10-26 03:59:59 EEST
                  Sun 2014-10-26 03:00:00 EET
Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2015-03-29 02:59:59 EET
                  Sun 2015-03-29 04:00:00 EEST

The problem is that Universal time (as well as RTC time - no idea what is it) is correct, but local time is always +2 hours. I have no idea what to do. googled through various sites and forums and threads in arch forums and even wiki - I have no idea. BTW its Europe --> Vilnius timezone. I think I could do this by changing hwclock, but I am confused now a lot - shouldn't it set automatically? meh..

Can anyone help me to make local time to be the same as Universal/RTC time? I also managed to set properly link to /etc/localtime, this is not the first time I am installing Arch. In the past I never had this kind of issue. what might cause it?

EDIT: these commands fixed it:
# timedatectl set-time "yyyy-MM-dd hh:mm:ss" # set local system time
# hwclock --systohc # set hardware time as local system time

Last edited by erkexzcx (2014-12-04 09:37:57)


Allergic to admins&moderators. They scare me.

Offline

#2 2014-12-03 23:18:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,744

Re: [SOLVED] Local time and Universal time are different + inaccurate

You don't seem to understand the concept of UTC. It shouldn't be the same as localtime unless you live in the +0 timezone.

Offline

#3 2014-12-03 23:21:43

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Local time and Universal time are different + inaccurate

Please read this topic (this will explain what RTC means, among other things): https://wiki.archlinux.org/index.php/Time

Then check the output of "timedatectl" against the actual value of UTC when you run the command. Use this web site: http://www.timeanddate.com/worldclock/timezone/utc

Does the UTC time your machine reports agree with actual UTC? I would guess that it does not, and that your machine's hardware clock is set to your local time. It is a common mistake for people to report "UTC time is correct" when in fact the time their machine reports as UTC is their local time. As Scimmia points out, this is only "correct" for people who live near the prime meridian (the +0 timezone).

Set your hardware clock to actual UTC. Your local time should be UTC+2. This appears to be working correctly, but what your machine thinks is UTC is actually your local time. http://www.timeanddate.com/worldclock/lithuania/vilnius

Last edited by 2ManyDogs (2014-12-03 23:31:19)

Offline

#4 2014-12-04 09:34:21

erkexzcx
Banned
From: Kaunas
Registered: 2014-09-28
Posts: 77

Re: [SOLVED] Local time and Universal time are different + inaccurate

2ManyDogs wrote:

Please read this topic (this will explain what RTC means, among other things): https://wiki.archlinux.org/index.php/Time

Then check the output of "timedatectl" against the actual value of UTC when you run the command. Use this web site: http://www.timeanddate.com/worldclock/timezone/utc

Does the UTC time your machine reports agree with actual UTC? I would guess that it does not, and that your machine's hardware clock is set to your local time. It is a common mistake for people to report "UTC time is correct" when in fact the time their machine reports as UTC is their local time. As Scimmia points out, this is only "correct" for people who live near the prime meridian (the +0 timezone).

Set your hardware clock to actual UTC. Your local time should be UTC+2. This appears to be working correctly, but what your machine thinks is UTC is actually your local time. http://www.timeanddate.com/worldclock/lithuania/vilnius


ohh, so that makes a lot of sense! Thank you!


Allergic to admins&moderators. They scare me.

Offline

Board footer

Powered by FluxBB