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 />
|
||||
public TimeZoneInfo GetTimeZone()
|
||||
{
|
||||
var timeZoneId = TimeZoneInfo.Local.Id;
|
||||
return TimeZoneInfo.FindSystemTimeZoneById(timeZoneId);
|
||||
return TimeZoneInfo.Local;
|
||||
//var timeZoneId = TimeZoneInfo.Local.Id;
|
||||
//return TimeZoneInfo.FindSystemTimeZoneById(timeZoneId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user