Hot answers tagged 2007
The SPUtility.CreateISO8601DateTimeFromSystemDateTime is an extremely badly coded DateTime format function. It has a hard requirement that the DateTime passed to it is in UTC as it just hardcoded adds Z as the zone designator. So you have to convert your DateTime to UTC using mySite.RegionalSettings.TimeZone.LocalTimeToUTC(date) or some other method before ...
Only top voted, non community-wiki answers of a minimum length are eligible