Re: [gentoo-user] About the time sync with Windows and Gentoo

2014-07-08 Thread J. Roeleveld
On Tuesday, July 08, 2014 02:45:41 PM taozhijiang wrote:
 Hi, all
 I have installed dual OSes on my laptop: Microsoft Windows 7 and Gentoo.
 But I can not sync the time with the different OSes. 
 By default, Windows  shows the right time, but Gentoo failed, how to setup
 the system to fix the problem described above.
 
 I am in the Zone UTC+8, China/Beijing.

Please check the hwclock configuration:
**
# cat /etc/conf.d/hwclock 
# Set CLOCK to UTC if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time).  If that clock is set to the local time, then
# set CLOCK to local.  Note that if you dual boot with Windows, then
# you should set it to local.
clock=UTC
**

In other words:
Set the BIOS clock to the local time.
Set the following in the /etc/conf.d/hwclock file:
clock=local

Also, ensure that MS Windows does the clock-changes between summer and winter 
time (if that exists where you live).

--
Joost



Re: [gentoo-user] About the time sync with Windows and Gentoo

2014-07-08 Thread Michael Cook

On 07/08/2014 03:04 AM, J. Roeleveld wrote:

On Tuesday, July 08, 2014 02:45:41 PM taozhijiang wrote:

Hi, all
I have installed dual OSes on my laptop: Microsoft Windows 7 and Gentoo.
But I can not sync the time with the different OSes.
By default, Windows  shows the right time, but Gentoo failed, how to setup
the system to fix the problem described above.

I am in the Zone UTC+8, China/Beijing.


Please check the hwclock configuration:
**
# cat /etc/conf.d/hwclock
# Set CLOCK to UTC if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time).  If that clock is set to the local time, then
# set CLOCK to local.  Note that if you dual boot with Windows, then
# you should set it to local.
clock=UTC
**

In other words:
Set the BIOS clock to the local time.
Set the following in the /etc/conf.d/hwclock file:
clock=local

Also, ensure that MS Windows does the clock-changes between summer and winter
time (if that exists where you live).

--
Joost


It's actually recommended for dual booting with Windows Vista+ to set 
Windows to UTC rather than setting Linux to local (Windows XP and 
earlier apparently don't play nicely/can't be set to UTC)


This should tell you how: 
https://wiki.archlinux.org/index.php/time#UTC_in_Windows




Re: [gentoo-user] About the time sync with Windows and Gentoo

2014-07-08 Thread J. Roeleveld
On Tuesday, July 08, 2014 03:27:45 AM Michael Cook wrote:
 On 07/08/2014 03:04 AM, J. Roeleveld wrote:
  On Tuesday, July 08, 2014 02:45:41 PM taozhijiang wrote:
  Hi, all
  I have installed dual OSes on my laptop: Microsoft Windows 7 and Gentoo.
  But I can not sync the time with the different OSes.
  By default, Windows  shows the right time, but Gentoo failed, how to
  setup
  the system to fix the problem described above.
  
  I am in the Zone UTC+8, China/Beijing.
  
  Please check the hwclock configuration:
  **
  # cat /etc/conf.d/hwclock
  # Set CLOCK to UTC if your Hardware Clock is set to UTC (also known as
  # Greenwich Mean Time).  If that clock is set to the local time, then
  # set CLOCK to local.  Note that if you dual boot with Windows, then
  # you should set it to local.
  clock=UTC
  **
  
  In other words:
  Set the BIOS clock to the local time.
  Set the following in the /etc/conf.d/hwclock file:
  clock=local
  
  Also, ensure that MS Windows does the clock-changes between summer and
  winter time (if that exists where you live).
  
  --
  Joost
 
 It's actually recommended for dual booting with Windows Vista+ to set
 Windows to UTC rather than setting Linux to local (Windows XP and
 earlier apparently don't play nicely/can't be set to UTC)
 
 This should tell you how:
 https://wiki.archlinux.org/index.php/time#UTC_in_Windows

Thank you for this.
I don't often boot into MS Windows and deal with the change in clock when I 
get back into Linux afterwards.
This should solve that :)

--
Joost



Re: [gentoo-user] About the time sync with Windows and Gentoo

2014-07-08 Thread wraeth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 08/07/14 17:27, Michael Cook wrote:
 This should tell you how:
 https://wiki.archlinux.org/index.php/time#UTC_in_Windows

It should be noted that this does have the potential to cause minor issues
with Windows, in that some applications/process expect that the system time is
set to local rather than UTC.

See http://superuser.com/a/621218

That being said, I haven't tried it myself, nor have I heard any direct
reports of issues, but it is something to be aware of.

- -wraeth
-BEGIN PGP SIGNATURE-
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlO8fUcACgkQXcRKerLZ91nj5AD5Ad3PgRNNEfuMuC44In7D+/b9
6MZ+AbykrHqKGkgaBYUA/1DsK594ulwKe5ZNQqLmgO6A2xFX6AbTglxAg1AV4ECT
=667V
-END PGP SIGNATURE-