UTC or LOCAL when installing Debian

Here you can discuss every aspect of Debian. Note: not for support requests!

UTC or LOCAL when installing Debian

Postby nadebula1984 » 2019-12-01 16:19

I installed Debian testing using Debian Installer weekly build. There was an existing Windows installation on another hard disk. The installer detected it and automatically configured its boot option.

When I booted into newly installed Debian, I found that the time was different from Windows, where I already set to treating hardware time as UTC and disabling internet time service. After browsing Debian wiki, I returned to Debian and checked /etc/adjtime. Then I found that the configuration file was set to LOCAL. Was this simply because any existing Windows installation was detected during installation? I've never seen this before.
nadebula1984
 
Posts: 12
Joined: 2018-06-03 11:46

Re: UTC or LOCAL when installing Debian

Postby jwrober » 2019-12-09 20:55

I think that must be new. I recently purchased a new laptop that has Windows on it and loaded a fresh copy of Buster along side the Windows and I had to manually set my HW clock to local time so Windows would go to UTC. That is a nice feature.
jwrober
 
Posts: 7
Joined: 2019-12-09 20:09
Location: San Antonio, TX

Re: UTC or LOCAL when installing Debian

Postby NFT5 » 2019-12-09 21:46

Not new. Setting to UTC or Local time has been an installation option for a long time, as has the detection of Windows and set to Local.
User avatar
NFT5
 
Posts: 349
Joined: 2014-10-10 11:38
Location: Canberra, Australia

Re: UTC or LOCAL when installing Debian

Postby Mr. Lumbergh » 2019-12-31 05:15

Local all the way. I don't care what time it is in Greenwich. You can set which is used in the installation options, or reset after the fact.
Mr. Lumbergh
 
Posts: 35
Joined: 2019-08-02 04:28

Re: UTC or LOCAL when installing Debian

Postby p.H » 2019-12-31 09:33

jwrober wrote:I had to manually set my HW clock to local time so Windows would go to UTC.

You got it wrong. If you configure Windows for UTC, you must set the hardware clock to UTC too (as in Debian).

Mr. Lumbergh wrote:Local all the way. I don't care what time it is in Greenwich.

1) UTC is not Greenwich time. It is an arbitrary reference time used internally which is not affected by daylight saving changes. You (and I) do not care about epoch time either, even though it is used internally by the system.

2) When the local time zone has daylight saving time shifts, setting the hardware clock to local time has issues with multiboot : each operating system will do the time shift, not knowing that another one already did it, resulting in a wrong local time. Fortunately NTP may silently correct it before you notice.

Bottom line : the hardware clock should be set to UTC unless you have a good reason to do otherwise.
p.H
 
Posts: 1225
Joined: 2017-09-17 07:12

Re: UTC or LOCAL when installing Debian

Postby Head_on_a_Stick » 2019-12-31 11:21

When dual-booting the best approach is to make Windows obey a sane time standard: https://wiki.archlinux.org/index.php/Sy ... in_Windows

Local time is bollocks...
Don't break DebianHow to report bugsDebian Reference Card

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10978
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable