aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/rtc-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtest/rtc-test.c')
-rw-r--r--tests/qtest/rtc-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/rtc-test.c b/tests/qtest/rtc-test.c
index 8126ab1bdb..02ed4e1238 100644
--- a/tests/qtest/rtc-test.c
+++ b/tests/qtest/rtc-test.c
@@ -111,7 +111,7 @@ static void cmos_get_date_time(struct tm *date)
date->tm_mday = mday;
date->tm_mon = mon - 1;
date->tm_year = base_year + year - 1900;
-#ifndef __sun__
+#if !defined(__sun__) && !defined(_WIN32)
date->tm_gmtoff = 0;
#endif