LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Time differences in dual-boot PC (https://www.linuxquestions.org/questions/linux-newbie-8/time-differences-in-dual-boot-pc-4175596418/)

pconstantatos 12-29-2016 03:30 PM

Time differences in dual-boot PC
 
I am running Linux Mint18.1 and Windows 10 in dual-boot installations on a number of PC's, all of them Dell Optiplex desktops and Dell Latitude laptops. I am geting the same problem on all of them. Although time is on auto (network-provided time) and time zones on all systems to +2 (Athens) whenever I boot Windows after Linux the clock on Windows will be two hours behind. The time in Bios changes as well. The time does not change when I boot consecutive instances of Windows, only when Linux comes into play. I use Linux for 90% of my work, Windows is dedicated only to Photoshop, Lightroom and Media Monkey. Still I cannot do without Windows otherwise I would uninstall them. Any suggestions as to how I can correct the problem?

syg00 12-29-2016 03:36 PM

You have a mis-match in timezone handling - Windows has always used localtime, and *nix UTC. I believe with Win10 you can coerce it to change, but easier to run Linux in Athens localtime. Mint should have a howto somewhere, but this might get you started.

michaelk 12-29-2016 03:48 PM

To elaborate a bit the mismatch is due to what linux uses as the timezone for the hardware clock. There is no BIOS setting for timezone. As stated Windows defaults to local time and linux UTC and this causes the time to be off when you switch to the other operating system.

By changing Mint to use localtime for the hardware clock should resolve your issues. Using systemd the way to change the configuration setting is:

sudo timedatectl set-local-rtc 1


The actual configuration file is /etc/adjtime.

syg00 12-29-2016 04:20 PM

Are Mint using systemd these days ?.

michaelk 12-29-2016 04:25 PM

I thought that 18 switched to systemd but I could be wrong...

BW-userx 12-29-2016 05:29 PM

change your Linux systems rc.conf file to "localtime"
to set time date in Linux and set the hwclock
Code:

# date -s "1 JAN 2017 00:01:00"
# hwclock -w


hydrurga 12-30-2016 05:21 AM

Quote:

Originally Posted by syg00 (Post 5647904)
Are Mint using systemd these days ?.

Yes. Starting with Linux Mint 18, Mint is based on Ubuntu 16.04 which uses systemd.

syg00 12-30-2016 05:31 AM

Thanks; hope they did a better job than Debian appeared to have done - seen plenty of issues reported here. Time to go upgrade one of my old Mint systems.

pconstantatos 12-31-2016 04:46 PM

Thank you all and Happy New Year. The problem has been solved.


All times are GMT -5. The time now is 03:58 PM.