From 21e6beed5c75ac795f8e3aa43a2c2ebaeb88d39a Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Wed, 11 Apr 2007 14:18:23 +0200 Subject: [PATCH] ntdll: Don't use settimeofday() to attempt to set the timezone. --- dlls/ntdll/time.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index ffec9192f36..2a05f09ec31 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -1054,23 +1054,9 @@ NTSTATUS WINAPI RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION *tzinfo) * Success: STATUS_SUCCESS. * Failure: An NTSTATUS error code indicating the problem. * - * BUGS - * Uses the obsolete unix timezone structure and tz_dsttime member. */ NTSTATUS WINAPI RtlSetTimeZoneInformation( const RTL_TIME_ZONE_INFORMATION *tzinfo ) { -#ifdef HAVE_SETTIMEOFDAY - struct timezone tz; - - tz.tz_minuteswest = tzinfo->Bias; -#ifdef DST_NONE - tz.tz_dsttime = DST_NONE; -#else - tz.tz_dsttime = 0; -#endif - if(!settimeofday(NULL, &tz)) - return STATUS_SUCCESS; -#endif return STATUS_PRIVILEGE_NOT_HELD; } -- 2.11.4.GIT