Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OperationalInsights] Fix DateTimeOffset format string #34031

Merged

Conversation

fengzhou-msft
Copy link
Member

@fengzhou-msft fengzhou-msft commented Feb 9, 2023

Resolve #33536, #33571

The generated code should be property.Value.GetDateTimeOffset("O") instead of property.Value.GetDateTimeOffset().

The former method will call an extension method of JsonElement written by us to treat the JsonElement as Int64 (Unix Timestamp) or string and the string case can support multiple formats despite the "O" format (ISO8601) being passed in. See code.

The latter method calls the original GetDateTimeOffset() of JsonElement and seems to only support ISO8601 format.

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@fengzhou-msft fengzhou-msft merged commit 8ec586d into Azure:main Feb 10, 2023
glharper added a commit that referenced this pull request Feb 15, 2023
Co-authored-by: Jesse Squire <[email protected]>
Co-authored-by: archerzz <[email protected]>
Co-authored-by: Reiley Yang <[email protected]>
Co-authored-by: Jesse Squire <[email protected]>
Co-authored-by: HarmanDhunna <[email protected]>
Co-authored-by: HarmanDhunna <[email protected]>
Co-authored-by: Richard Park <[email protected]>
Co-authored-by: Mike Harder <[email protected]>
Co-authored-by: Theodore Chang <[email protected]>
Co-authored-by: Arcturus Zhang <[email protected]>
Co-authored-by: Wes Haggard <[email protected]>
Co-authored-by: Yao Kou <[email protected]>
Co-authored-by: ArcturusZhang <[email protected]>
Co-authored-by: Vishwesh Bankwar <[email protected]>
Co-authored-by: JoshLove-msft <[email protected]>
Co-authored-by: Scott Addie <[email protected]>
Co-authored-by: Madalyn Redding <[email protected]>
Co-authored-by: Anne Thompson <[email protected]>
Co-authored-by: Jose Arriaga Maldonado <[email protected]>
Co-authored-by: Azure SDK Bot <[email protected]>
Co-authored-by: Scott Schaab <[email protected]>
Co-authored-by: Heath Stewart <[email protected]>
Co-authored-by: ShivangiReja <[email protected]>
Co-authored-by: Wes Haggard <[email protected]>
Co-authored-by: Timothy Mothra <[email protected]>
Co-authored-by: ShaneMicro <[email protected]>
Co-authored-by: Feng Zhou <[email protected]>
Co-authored-by: nisha-bhatia <[email protected]>
Co-authored-by: Nathan Carlson <[email protected]>
Co-authored-by: wangrui-msft <[email protected]>
Co-authored-by: Theodore Chang <[email protected]>
Co-authored-by: Arthur Ma <[email protected]>
Co-authored-by: isolenov <[email protected]>
Co-authored-by: m-nash <[email protected]>
Co-authored-by: Konrad Jamrozik <[email protected]>
Co-authored-by: Caio Saldanha <[email protected]>
Co-authored-by: Chengming <[email protected]>
Co-authored-by: Minghao Chen <[email protected]>
Co-authored-by: Alexey Rodionov <[email protected]>
Co-authored-by: Travis Wilson <[email protected]>
Fix typo in Identity changelog (#34022)
fix logic workflow update method (#33944)
fixes #33975 by reformatting snippets in sdk/core.
fix datetimeoffset format string (#34031)
Fix creat recognize request of call automation media (#34036)
Fix how arrays stored in Activity Tags are serialized. (#34086)
fix more nullables (#34092)
resolver, logic, storage (#34140)
fix MSI deserialization (#34136)
resolver releases (#34144)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants