fix timezone error after publish to windows server 2002
This commit is contained in:
+3
-2
@@ -8,7 +8,8 @@ public class LocalTimeZoneProvider : ITimeZoneProvider
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public TimeZoneInfo GetTimeZone()
|
public TimeZoneInfo GetTimeZone()
|
||||||
{
|
{
|
||||||
var timeZoneId = TimeZoneInfo.Local.Id;
|
return TimeZoneInfo.Local;
|
||||||
return TimeZoneInfo.FindSystemTimeZoneById(timeZoneId);
|
//var timeZoneId = TimeZoneInfo.Local.Id;
|
||||||
|
//return TimeZoneInfo.FindSystemTimeZoneById(timeZoneId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user