C# GoogleMaps.TimeZone.Query LatLng返回不正确的时间偏移

C# GoogleMaps.TimeZone.Query LatLng返回不正确的时间偏移,c#,google-maps-api-3,timezone,C#,Google Maps Api 3,Timezone,当我尝试使用GoogleMaps.TimeZone.Query获取阿姆斯特丹的时间偏移量时,它说它比1小时提前19分钟。为什么会这样?有什么想法吗 以下是答复: Offset: 0.0 RawOffSet: 1172.0 Status: OK StatusStr: "OK" TimeZoneId: "Europe/Amsterdam" TimeZoneName: "GMT+00:19:32" 下面是我的代码: var geocodeRequest = new GeocodingRequest(

当我尝试使用GoogleMaps.TimeZone.Query获取阿姆斯特丹的时间偏移量时,它说它比1小时提前19分钟。为什么会这样?有什么想法吗

以下是答复:

Offset: 0.0
RawOffSet: 1172.0
Status: OK
StatusStr: "OK"
TimeZoneId: "Europe/Amsterdam"
TimeZoneName: "GMT+00:19:32"
下面是我的代码:

var geocodeRequest = new GeocodingRequest()
{
    Address = address
};
var geocodeResponse = GoogleMaps.Geocode.Query(geocodeRequest);

var responseResult = geocodeResponse.Results.FirstOrDefault();
if (responseResult != null)
{
    var timezoneResult = GoogleMaps.TimeZone.Query(
        new TimeZoneRequest
        {
            Sensor = false, 
            Language = user.UserProfile.Culture, 
            Location = responseResult.Geometry.Location
        });
}

添加了另一个名为timestamp的参数,该参数现在是通用时间

var timezoneResult=GoogleMaps.TimeZone.Query(新时区请求{Sensor=false,Language=user.UserProfile.Culture,Location=responseResult.Geometry.Location,TimeStamp=DateTime.Now.ToUniversalTime()})

这似乎解决了问题