diff --git a/AsbCloudInfrastructure/DateTimeExtensions.cs b/AsbCloudInfrastructure/DateTimeExtensions.cs index 38c24f52..61b1c72c 100644 --- a/AsbCloudInfrastructure/DateTimeExtensions.cs +++ b/AsbCloudInfrastructure/DateTimeExtensions.cs @@ -36,8 +36,11 @@ namespace AsbCloudInfrastructure { if (date == default) return new DateTime(0, DateTimeKind.Unspecified); - var dateTz = date.ToOffset(TimeSpan.FromHours(remoteTimezoneOffsetHours)); - return dateTz.DateTime; + + var dateTz = date.ToOffset(TimeSpan.FromHours(remoteTimezoneOffsetHours)); + + var result = DateTime.SpecifyKind(dateTz.DateTime, DateTimeKind.Unspecified); + return result; } ///