Hi all!
I have a question:
How to change Change Event time in Event log to GMT.
Currently, Event time is current time of server(Datetime.Now).
I tried find a few codes to Log and change Datetime.Now to Datetime.UtcNow.
log.LogEvent(eventType, DateTime.Now, source, eventCode, CMSContext.CurrentUser.UserID, HTTPHelper.GetUserName(), nodeId, nodeNamePath, HTTPHelper.UserHostAddress, eventDescription, siteId, HTTPHelper.GetAbsoluteUri());
to
log.LogEvent(eventType, DateTime.UtcNow, source, eventCode, CMSContext.CurrentUser.UserID, HTTPHelper.GetUserName(), nodeId, nodeNamePath, HTTPHelper.UserHostAddress, eventDescription, siteId, HTTPHelper.GetAbsoluteUri());
However, I thought I can't change every where because there are many place to implement log so please suggest for me best way.
Thank very much!
GiangLT3