From: Kyle Hayes <kyle@silverbeach.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Changing RTC from UTC to local time
Date: Sat, 29 May 2004 10:23:18 -0700 [thread overview]
Message-ID: <200405291023.18228.kyle@silverbeach.net> (raw)
In-Reply-To: <40B8A0B1.3040601@fabianowski.de>
On Saturday 29 May 2004 07:39, Bartosz Fabianowski wrote:
> Hi
>
> I have recently been experimenting with QEMU a bit and I noticed
> that the simulated RTC will always give the time in UTC, not in the
> local time zone of the host. This is probably by design; however, I
> would like to question that design choice.
>
> On a PC, the RTC is supposed to always be set to local time, not to
> UTC. It might be different on different architectures - but for a
> simulated PC, the current behavior is not correct.
Er, no. For a _Windows_ PC, this is true. For all *BSD and Linux
OSes, you should usually use UTC/GMT for the hardware clock.
> This is an important issue because Windows assumes that the RTC
> behaves to the spec and thinks that the time reported by the RTC is
> local. Thus, a Windows installed inside QEMU will report the
> current UTC time as the local time. If the host computer is located
> in any time zone other than GMT, the time on the host and the time
> on the slave will therefore be off by hours.
>
> The fix for this is obvious - set the RTC to the local time of the
> host, not to UTC. I have attached a trivial patch to accomplish
> this.
Please revert the patch or make it so that it is a runtime option. I
don't run Windows in QEMU and this makes all my times off.
Best,
Kyle
next prev parent reply other threads:[~2004-05-29 17:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-29 14:39 [Qemu-devel] Changing RTC from UTC to local time Bartosz Fabianowski
2004-05-29 17:23 ` Kyle Hayes [this message]
2004-05-29 18:50 ` Bartosz Fabianowski
2004-05-29 23:13 ` Tim
2004-05-29 23:23 ` Bartosz Fabianowski
2004-05-30 4:52 ` John R. Hogerhuis
2004-05-30 19:32 ` Bartosz Fabianowski
2004-05-30 19:42 ` Kyle Hayes
2004-05-31 13:53 ` Pavel Janík
2004-05-31 14:20 ` Bartosz Fabianowski
2004-05-31 14:51 ` Fabrice Bellard
2004-05-31 14:51 ` Bartosz Fabianowski
2004-05-31 15:12 ` Derek Fawcus
2004-05-31 16:43 ` Tim
2004-05-31 16:27 ` Pavel Janík
2004-05-31 17:09 ` Kyle Hayes
2004-05-30 21:59 ` Flavien
2004-05-31 0:29 ` Bartosz Fabianowski
2004-05-31 1:52 ` Kyle Hayes
2004-05-31 12:11 ` Bartosz Fabianowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200405291023.18228.kyle@silverbeach.net \
--to=kyle@silverbeach.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).