Jump to content
  • 0
Sign in to follow this  
Freece

Clock not displaying Daylight Saving Time

Question

I have set up the time using tzdata setting up what timezone I live in. But here it is DLS now and the clock does not show it. If I enter date -ufc I get the correct time, but the clock shows one hour ahead. How would I go about solving this problem?

Sincerely,

Freece

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

I think you have it backward. That is, DST has ended as of last Sunday. That your time shows "one hour ahead", as you say, implies that it did NOT "fall back" to standard. Could you have gotten the TZ wrong?

Share this post


Link to post
Share on other sites
  • 0

tzdata is sometimes mistaken afaik. The package gets updated rather often. Can you run 

sudo apt-get update && sudo apt-get dist-upgrade
sudo dpkg-reconfigure tzdata

Make sure to enter your local capital city when reconfiguring.

 

Enjoy,

Charles

Share this post


Link to post
Share on other sites
  • 0

Hello! Sorry for the delay. I am certain that the tzdata is set correctly; to Stockholm, Europe. @bob yes you are quite right, I meant the other way around.

I did your update and reconfig Charles, to no avail.

@gohlip output is following:

$ timedatectl
      Local time: lör 2016-11-12 19:00:30 CET
  Universal time: lör 2016-11-12 18:00:30 UTC
        RTC time: lör 2016-11-12 18:00:30
       Time zone: Europe/Stockholm (CET, +0100)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no

Share this post


Link to post
Share on other sites
  • 0

Hmm, I do know that windows and linux do use different methods for the system time. Linux prefers UTC and Windows uses Local time for the internal clock. When I boot into Win10 the time is always off. When I set the correct time in Win10, Linux time is off. This might be the case for you too.

I'm not sure where you can change the internal clock in Linux, I once knew where to find that config.

 

Enjoy,

Charles.

Share this post


Link to post
Share on other sites
  • 0

Right,

as @the_waiter says, install ntp package.

And when it gets syncronized,

"NTP synchronized: yes" will appear in timedatectl.

And being set in utc (as is done now shown by "RTC in local TZ: no") DST will automatically be done correctly. (it will not be done  in RTC but okay in UTC).

 

As for windows/Bodhi time, windows use RTC and the time when booted up after reboot from the other time will initially be wrong until ntp kicks in for each.

If you want, you can either set both to UTC (done in Bodhi now as shown by your timedatectl) or set both to RTC (always default in Windows).

But DST in RTC is not reliable see http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html

Though setting RTC in linux is much simpler than setting windows in UTC. see https://weblogs.asp.net/dfindley/Set-hardware-clock-to-UTC-on-Windows-_2800_or-how-to-make-the-clock-work-on-a-Mac-Book-Pro_2900_

 

Oh .... check that Bodhi's /etc/default/rcs does not have line "utc=false"

Bodhi4 now does not have this line now. Earlier Bodhi's have this and can be confusing because  tzdata works as well as timedatectl.

Now it's mainly systemd and so uses timedatectl to handle this.

Share this post


Link to post
Share on other sites
  • 0

Hello again all!

@gohlip I checked the rcS file and that line was not there. I installed ntp package and it started working within seconds. I think, for simplicity, that I will just stick to that for now.

 

Thank you all for great responses.

Share this post


Link to post
Share on other sites
  • 0

I started encountering this problem after installing Bodhi 4.1.0. Never used to have this problem in previous versions. 

 

Thanks @the_waiter.

 

After installing ntp, my problem was fixed.

sudo apt install ntp

Share this post


Link to post
Share on other sites
  • 0

NTP to the rescue!

 

kmak - would you kindly mark this as solved?  Thank you and welcome to the forums!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×