Closed gabbsmo closed 2 months ago
Adding the attribute StorageTZ='TRUE'
to date values seem to help. I could swear this was not necessary before.
Working example:
<Value StorageTZ='TRUE' IncludeTimeValue='TRUE' Type='DateTime'>2024-07-06T22:00:00Z</Value>
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint CSOM
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
No response
Describe the bug / error
The
RenderListDataAsStream
API has a parameterDatesInUtc
. When it is true, it indicates that any DateTime values in the Caml query is in universal time. However, since today or earlier, it no longer seem to work. For the same query, I need to set the site's time zone to UTC to get any results.Steps to reproduce
Expected behavior
When using the DatesInUtc parameter, passing DateTime values in UTC, and there are matching items I expect them in the result, regardless of regional settings.