mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 14:04:41 +08:00
修复pg存储的时候时间少8个小时
This commit is contained in:
parent
09c47a7a07
commit
ea1cbb0f6b
@ -102,7 +102,7 @@ namespace OpenAuth.Repository
|
|||||||
property.ClrType == typeof(DateTime))
|
property.ClrType == typeof(DateTime))
|
||||||
{
|
{
|
||||||
property.SetValueConverter(new ValueConverter<DateTime, DateTime>(
|
property.SetValueConverter(new ValueConverter<DateTime, DateTime>(
|
||||||
v => v.ToUniversalTime(), v => DateTime.SpecifyKind(v, DateTimeKind.Utc)));
|
v => v.ToLocalTime(), v => DateTime.SpecifyKind(v, DateTimeKind.Local)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user