[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Changing RTC from UTC to local time
From: |
Kyle Hayes |
Subject: |
Re: [Qemu-devel] Changing RTC from UTC to local time |
Date: |
Sat, 29 May 2004 10:23:18 -0700 |
User-agent: |
KMail/1.5.4 |
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
- [Qemu-devel] Changing RTC from UTC to local time, Bartosz Fabianowski, 2004/05/29
- Re: [Qemu-devel] Changing RTC from UTC to local time,
Kyle Hayes <=
- Re: [Qemu-devel] Changing RTC from UTC to local time, Bartosz Fabianowski, 2004/05/29
- Re: [Qemu-devel] Changing RTC from UTC to local time, Tim, 2004/05/29
- Re: [Qemu-devel] Changing RTC from UTC to local time, Bartosz Fabianowski, 2004/05/29
- Re: [Qemu-devel] Changing RTC from UTC to local time, John R. Hogerhuis, 2004/05/30
- Re: [Qemu-devel] Changing RTC from UTC to local time, Bartosz Fabianowski, 2004/05/30
- Re: [Qemu-devel] Changing RTC from UTC to local time, Kyle Hayes, 2004/05/30
- Re: [Qemu-devel] Changing RTC from UTC to local time, Pavel JanÃk, 2004/05/31
- Re: [Qemu-devel] Changing RTC from UTC to local time, Bartosz Fabianowski, 2004/05/31
- Re: [Qemu-devel] Changing RTC from UTC to local time, Fabrice Bellard, 2004/05/31
- Re: [Qemu-devel] Changing RTC from UTC to local time, Derek Fawcus, 2004/05/31