LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2018, 01:53 PM   #1
BenKenoobi
LQ Newbie
 
Registered: Dec 2018
Distribution: Arch
Posts: 19

Rep: Reputation: Disabled
Question Windows and Linux Time settings are conflicting


I have dual booted Debian 8 "Jessie" and Windows 10 pro 64 bit.
I have set the timezones correctly in both the OSes.

When I set the time in Linux to "UTC+x" then the BIOS time is set as "UTC".
However, setting the time in Windows to "UTC+x" sets BIOS time to "UTC+x".

Hence, setting the current time in Linux leads to the windows time getting set behind by "-x".
Conversely, setting the current time in Windows leads to the linux time getting set ahead by "+x".

How do I make the BIOS time equal to the Linux time (without subtracting the "x") ?
 
Old 12-29-2018, 02:05 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
localtime, set both, or use that internet time settings for your linux so every time you boot into it and it links up to the net it will update your time to current time off the time server.

Last edited by BW-userx; 12-29-2018 at 02:06 PM.
 
Old 12-29-2018, 02:12 PM   #3
BenKenoobi
LQ Newbie
 
Registered: Dec 2018
Distribution: Arch
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
localtime, set both, or use that internet time settings for your linux so every time you boot into it and it links up to the net it will update your time to current time off the time server.
So to set it to Local Time I set my timezone as London ?

Also, I have currently enabled "auto-sync". Is that the internet time settings you are referring to ?
 
Old 12-29-2018, 02:35 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by BenKenoobi View Post
So to set it to Local Time I set my timezone as London ?

Also, I have currently enabled "auto-sync". Is that the internet time settings you are referring to ?
yes and yes

whatever zone you are in, set windows to local time, and linux to local time, then you have to adjust them, and a few reboots between the two to see if they are not interfearing, or that the time stays the same.

systemd
Code:
sudo timedatectl list-timezones
sudo timedatectl set-timezone London/London
sudo timedatectl set-time "2013-08-11 23:56:16"

To change the hardware clock time standard to localtime, use:

# timedatectl set-local-rtc 1

To revert to the hardware clock being in UTC, type:

# timedatectl set-local-rtc 0
other than systemd
Code:
sudo date +%T -s 3:30pm
sudo hwclock -w
https://www.wikihow.com/Change-the-Timezone-in-Linux
for more information, as I have to edit a file to set it for local time as well. so it depends on the Distro if not systemD.

In Windows you have to go into they time setup too, and tell it local time.

Last edited by BW-userx; 12-29-2018 at 02:37 PM.
 
1 members found this post helpful.
Old 12-31-2018, 04:48 PM   #5
BenKenoobi
LQ Newbie
 
Registered: Dec 2018
Distribution: Arch
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
To change the hardware clock time standard to localtime, use:

# timedatectl set-local-rtc 1

To revert to the hardware clock being in UTC, type:

# timedatectl set-local-rtc 0
This did the trick.
Setting local-rtc to 1 results in Debian reading/ writing the time "as is", which matches the setting in Windows.
Thanks !!
 
Old 12-31-2018, 06:19 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
NP, Now even your PC will be on time for New Years!!!!
Happy New Years!
 
Old 01-01-2019, 03:35 AM   #7
BenKenoobi
LQ Newbie
 
Registered: Dec 2018
Distribution: Arch
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks !!
A very happy new year to you too !!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conflicting type declarations between sys/types.h and linux/types.h Da Shi Cao Programming 3 09-13-2010 11:55 PM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
KDE4 and xfce4 - conflicting settings (mouse and keyboard, maybe more) Olaus Slackware 3 09-23-2009 03:40 AM
conflicting redeclaration of sys/types.h and linux/types.h schmil Programming 6 12-11-2008 02:02 PM
grub conflicting with windows help! serious7 Linux - General 4 02-17-2007 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration