The code below is used to improve performance before upgrading to asp5. DNX Core 5.0 does not support the ConvertTimeFromUtc method. Is there another right way to achieve this?
public DateTime GmtNow() { return TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time")); }
This method no longer exists, I assume it is because the following method covers all parameters:
TimeZoneInfo.ConvertTime( DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time"))