Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

UTC or LOCAL when installing Debian

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
nadebula1984
Posts: 12
Joined: 2018-06-03 11:46

UTC or LOCAL when installing Debian

#1 Post by nadebula1984 »

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.

jwrober
Posts: 11
Joined: 2019-12-09 20:09
Location: San Antonio, TX

Re: UTC or LOCAL when installing Debian

#2 Post by jwrober »

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.

User avatar
NFT5
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 598
Joined: 2014-10-10 11:38
Location: Canberra, Australia
Has thanked: 10 times
Been thanked: 43 times

Re: UTC or LOCAL when installing Debian

#3 Post by NFT5 »

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.

Mr. Lumbergh
Posts: 102
Joined: 2019-08-02 04:28

Re: UTC or LOCAL when installing Debian

#4 Post by Mr. Lumbergh »

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.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: UTC or LOCAL when installing Debian

#5 Post by p.H »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: UTC or LOCAL when installing Debian

#6 Post by Head_on_a_Stick »

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...
deadbang

Post Reply