diff -rud qemu/hw/mc146818rtc.c qemu-patched/hw/mc146818rtc.c --- qemu/hw/mc146818rtc.c Sat Apr 3 14:27:31 2004 +++ qemu-patched/hw/mc146818rtc.c Sat May 29 14:24:29 2004 @@ -235,7 +235,7 @@ time_t ti; ti = s->current_time; - rtc_set_date_buf(s, gmtime(&ti)); + rtc_set_date_buf(s, localtime(&ti)); if (!(s->cmos_data[RTC_REG_B] & REG_B_SET)) { rtc_copy_date(s); diff -rud qemu/hw/pc.c qemu-patched/hw/pc.c --- qemu/hw/pc.c Sun May 23 21:10:46 2004 +++ qemu-patched/hw/pc.c Sat May 29 14:24:46 2004 @@ -110,7 +110,7 @@ /* set the CMOS date */ time(&ti); - tm = gmtime(&ti); + tm = localtime(&ti); rtc_set_date(s, tm); val = to_bcd(s, (tm->tm_year / 100) + 19);