Skip to main content

please check out this post:

https://social.msdn.microsoft.com/Forums/sharepoint/en-US/7646335b-c3ed-4f24-a637-a5967575cc81/itemupdating-propertiesafterproperties-returning-incorrect-datetime?forum=sharepointdevelopmentlegacy

Octavian

Suggested edit 3/12/2016

Cause: The problem is caused by that: the time zone setting of the SharePoint web is different from the windows client.

Solution: The method to get the after properties with the actual hour is a little different. You should get the TimeZone of the Web, and then change the time value to the UTC time.

please check out this post:

https://social.msdn.microsoft.com/Forums/sharepoint/en-US/7646335b-c3ed-4f24-a637-a5967575cc81/itemupdating-propertiesafterproperties-returning-incorrect-datetime?forum=sharepointdevelopmentlegacy

Octavian

Suggested edit 3/12/2016

Cause: The problem is caused by that: the time zone setting of the SharePoint web is different from the windows client.

Solution: The method to get the after properties with the actual hour is a little different. You should get the TimeZone of the Web, and then change the time value to the UTC time.