DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can manually set the date/time using the date command i.e.
date -s "7 APR 2017 18:00:00"
Thank you for your reply.
I was looking for some kind of automatic time changing thing which takes account of British Summer Time (BST).
Quote:
Normally, assuming your tz database and timezone is configured correctly the clock should automatically adjust for daylight saving time.
Yes, this is what I was expecting.
I am wondering if Debian-users have experienced this on their OS if their country has a similar 'daylight saving time' procedure?
Also, there must be a method of taking 'system time' from some reputable internet source (e.g. UK.gov).
Is there a command to take 'system time' from a specific UK website?
Quote:
Gone back? Didn't time switch Sunday, March 26, 2017 which moved an hour forward. So your system time should be an hour behind.
Yes, this is a little confusing, but my system time is actually 1 hour ahead.
Is there some way of finding out where the problem lies?
During install, I'm pretty certain I gave the right info to choose the correct timezone.
During install, I'm pretty certain I gave the right info to choose the correct timezone.
Just to be sure use dpkg-reconfigure tzdata to run its setup again making sure you have chosen the correct option. The time always has changed correctly here in the many years I have used Debian. Also you have made sure the BIOS time is set correctly?
Just to be sure use dpkg-reconfigure tzdata to run its setup again making sure you have chosen the correct option.
I have already done this. I expected it to resolve the problem.
However, the system time is still +1 hour to BST in the UK.
Don't know why this is happening.
Quote:
Also you have made sure the BIOS time is set correctly?
Never had a problem with the time before. So I'm guessing BIOS time is ok.
The output will display the timezone setting showing when DST switch over occurs.
zdump -v /etc/localtime | grep 2017
I have done this and the output is:
Code:
# zdump -v /etc/localtime | grep 2017
/etc/localtime Sun Mar 26 00:59:59 2017 UT = Sun Mar 26 00:59:59 2017 GMT isdst=0 gmtoff=0
/etc/localtime Sun Mar 26 01:00:00 2017 UT = Sun Mar 26 02:00:00 2017 BST isdst=1 gmtoff=3600
/etc/localtime Sun Oct 29 00:59:59 2017 UT = Sun Oct 29 01:59:59 2017 BST isdst=1 gmtoff=3600
/etc/localtime Sun Oct 29 01:00:00 2017 UT = Sun Oct 29 01:00:00 2017 GMT isdst=0 gmtoff=0
This seems to be telling me when daylight saving time (DST) begins and ends. This is also known as British Summer Time (BST).
BST is shown on the output.
This is a good command to know.
Quote:
Shows what timezone is selected.
cat /etc/timezone
The output is:
Code:
# cat /etc/timezone
Europe/London
So it looks like I've chosen the correct timezone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.