forked from ddrilling/AsbCloudServer
Фикс метода расширения перевода времени из Utc в местное
This commit is contained in:
parent
b2a31d92ec
commit
33de4bfa1a
@ -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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user