UTCDate in EventLog? Convert to correct locale
I am reading windows eventlog using WMI and just noticed recently that time is lagging behind, if I convert cim datetime to .NET. It seems that datetime is encoded as UTC. There should be straighforward 开发者_开发百科conversion in .NET, isn't it?
You might try date.ToLocalTime() to convert an UTC date/time to local date/time.
精彩评论