In .NET, some values โโused TimeZoneInfo
are cached, such as the current time zone used TimeZoneInfo.Local
, DateTime.ToLocalTime
etc. In traditional .NET Framework applications, this cache can be cleared by calling TimeZoneInfo.ClearCachedData()
, as explained in the documents .
However, in WinRT applications, such as the Windows Store and Windows Universal Apps, the API is ClearCachedData
not available.
How to clear timezone cache in WinRT environment?
source
share