799 reputation
616
bio website
location
age
visits member for 2 years, 7 months
seen yesterday

Jul
8
awarded  Popular Question
Jul
5
revised Add Document Library XsltListViewWebPart using CSOM or web services
deleted 16 characters in body
Jul
3
awarded  Popular Question
Jul
2
awarded  Curious
Jun
17
awarded  Notable Question
Jun
15
comment Set DateTime (utc) to listitem (CSOM, SP2013)
Are you sure you don't have UTC+0 in the web's locale? I checked from database that SharePoint and saves the UTC value to the database (after internally converting the given value from web's timezone (which it expects client to give) to UTC). And on-prem SP2013 seems to do no conversions when client reads the value, resulting in client getting the converted UTC value.
Jun
15
comment Set DateTime (utc) to listitem (CSOM, SP2013)
If you first save a value and then retrieve it, you will get a different value than you inserted: The value you get is converted to UTC, right? (on-premises at least it seems to work like this)
Jun
15
accepted Set DateTime (utc) to listitem (CSOM, SP2013)
Jun
15
comment Set DateTime (utc) to listitem (CSOM, SP2013)
so.. I guess 'listItem["DateTime"] = utc;' would not save utc because sharepoint converts the value to utc before saving. Otherwise your answer seems to work great :-) can we be sure the replacement will always be valid?
Jun
15
comment Set DateTime (utc) to listitem (CSOM, SP2013)
SharePoint seems to store UTC of the given local time to the database so saving 4pm in UTC+3 timezone would get stored as 1pm. Thus we get 1pm when reading the value (var value = listItem["DateTime"]; // 1pm)
Jun
14
revised Set DateTime (utc) to listitem (CSOM, SP2013)
edited title
Jun
14
revised Set DateTime (utc) to listitem (CSOM, SP2013)
edited title
Jun
14
asked Set DateTime (utc) to listitem (CSOM, SP2013)
May
22
revised Find Zone ID of list view webpart remotely
added 12 characters in body
May
22
asked Find Zone ID of list view webpart remotely
Apr
23
comment Proper way to check if Web.Title is available (CSOM)?
this seems great :) we could also slightly modify this to create an extension method "public static bool IsPropertyAvailable<T>(this T..." so we could call it like: "if (context.Web.IsPropertyAvailable(w => w.Title))"
Apr
23
comment Best method of downloading a folder of content from multiple versions of SharePoint from .NET
If it's a basic http address you might just use something like xcopy
Apr
23
accepted Proper way to check if Web.Title is available (CSOM)?
Apr
23
revised Proper way to check if Web.Title is available (CSOM)?
added 20 characters in body
Apr
23
revised Proper way to check if Web.Title is available (CSOM)?
deleted 238 characters in body