Skip to content

Cosmos DB items with datetime as string that has time zone offset loses time zone #7114

@mhoeger

Description

@mhoeger

Due to this well-known bug in Json.NET: JamesNK/Newtonsoft.Json#525

To get around this bad default, the C# users can override the settings here: Azure/azure-webjobs-sdk-extensions#575

Unfortunately, this is not a viable option for non-.NET languages. We need to introduce some sort of way for time zones to be preserved and set:

JsonConvert.DefaultSettings = () => new JsonSerializerSettings
{
    DateParseHandling = DateParseHandling.None
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions