You are not logged in.

#1 2015-08-04 14:40:42

Moosey_Linux
Member
From: Gotland Sweden
Registered: 2012-07-01
Posts: 45

[SOLVED]Time zone problems

Hi Arch community I have a time problem. My laptop is 2 hours of track at first i thought that installing ntp would help it. But after configuring it and starting it the problem remained the same.

/etc/ntp.conf
# Please consider joining the pool:
#
#     http://www.pool.ntp.org/join.html
#
# For additional information see:
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - the ntp.conf man page

# Associate to Arch’s NTP pool
server 0.arch.pool.ntp.org
server 1.arch.pool.ntp.org
server 2.arch.pool.ntp.org
server 3.arch.pool.ntp.org

# By default, the server allows:
# - all queries from the local host
# - only time queries from remote hosts, protected by rate limiting and kod
restrict default kod limited nomodify nopeer noquery notrap
restrict 127.0.0.1
restrict ::1

# Location of drift file
driftfile /var/lib/ntp/ntp.drift
/etc/systemd/timesyncd.conf
[Time]
NTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org
FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 0.fr.pool.ntp.org
timedatectl                
      Local time: Tue 2015-08-04 17:42:35 CEST
  Universal time: Tue 2015-08-04 15:42:35 UTC
        RTC time: Tue 2015-08-04 15:42:35
       Time zone: Europe/Stockholm (CEST, +0200)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

So I checked whit systemd and to my surprise it seems like ntp have synced the time but some how it have got my time zone tow hours wrong. The Universal time happens to bee the actual time in Sweden at the moment. I guess one solution would bee to change time zone but it feels like a retarded workaround after all I’m in the right time zone now. Thanks in advance for your answers smile

Last edited by Moosey_Linux (2015-08-04 15:57:03)

Offline

#2 2015-08-04 14:44:08

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

Re: [SOLVED]Time zone problems

https://en.wikipedia.org/wiki/Stockholm sys you're on CEST.

Edit: I think I've misunderstood you.
Read the wiki on how to set the correct time, check your hardware clock.

Last edited by karol (2015-08-04 14:45:34)

Offline

#3 2015-08-04 14:55:27

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED]Time zone problems

You posted at 7:42 PDT (UTC-7)
At that time, UTC would have been at 14:42.
Your hardware clock is off by an hour.
Your local time should only be off by an hour as well. (The time of your post should have been 16:42 local time)

Last edited by ewaller (2015-08-04 14:55:47)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2015-08-04 15:56:18

Moosey_Linux
Member
From: Gotland Sweden
Registered: 2012-07-01
Posts: 45

Re: [SOLVED]Time zone problems

Thanks for all the replays after a weeks struggle whit the time and ntp and reading the wiki, at the moment my time is right and i don’t know why. So i guess i mark this as solved even do I don’t know how and why.

karol wrote:

https://en.wikipedia.org/wiki/Stockholm sys you’re on CEST.

Edit: I think I’ve misunderstood you.
Read the wiki on how to set the correct time, check your hardware clock.

The “hardware clock” and the “RTC time” is the same right? So I have checked it and read the wiki smile

ewaller wrote:

You posted at 7:42 PDT (UTC-7)
At that time, UTC would have been at 14:42.
Your hardware clock is off by an hour.
Your local time should only be off by an hour as well. (The time of your post should have been 16:42 local time)

Yes I was thinking some one would ask but I wrote it at work having to close for the day didn’t have the time to post it until I came home that is why.

Thanks again and I will bee back if there is moor trouble now idea why it didn’t wont work for one week and now clock is suddenly back up but great any way.

Offline

Board footer

Powered by FluxBB