The Cosmos provider allows inserting DateTimeOffsets with arbitrary offsets, but the Cosmos functions don't appear to support them:
SELECT DateTimePart('hh', '2020-01-01 12:30:15') -- 12
SELECT DateTimePart('hh', '2020-01-01 12:30:15Z') -- 12
SELECT DateTimePart('hh', '2020-01-01 12:30:15+02:00') -- undefined
Unfortunately, even for zero offsets, we generate e.g. 0010-05-03T12:45:38+00:00, which isn't supported; we need to generate 0010-05-03T12:45:38Z instead. We could consider not allowing DateTimeOffsets with non-zero offsets.
The Cosmos provider allows inserting DateTimeOffsets with arbitrary offsets, but the Cosmos functions don't appear to support them:
Unfortunately, even for zero offsets, we generate e.g.
0010-05-03T12:45:38+00:00, which isn't supported; we need to generate0010-05-03T12:45:38Zinstead. We could consider not allowing DateTimeOffsets with non-zero offsets.