Skip to content

[BUG] Unsupported DateTime format "6/1/2023 12:00:00 AM +00:00" #43029

Open
@ejf-ibm

Description

@ejf-ibm

Describe the bug
azure-resourcemanager-billing 1.0.0 throws exception on billing account get operation due to startDate format for enrollment accounts. The start date in the latest version of https://learn.microsoft.com/en-us/rest/api/billing/billing-accounts/get?view=rest-billing-2024-04-01&tabs=HTTP has changed from 2018-05-01T17:32:28Z to 6/1/2023 12:00:00 AM +00:00. CoreUtils::parseBestOffsetDateTime is not able to handle this new format.

Exception or Stack Trace
Image

To Reproduce

  1. Invoke BillingManager.billingAccounts().get("[enrollment_id]");

Expected behavior
Correct deserialization of the start and end dates for the enrollment.

Setup (please complete the following information):

  • OS: Ubuntu 24.04.5 LTS
  • Library/Libraries: com.azure:azure-core:1.54.1, com.azure.resourcemanager:azure-resourcemanager-billing:1.0.0
  • Java version: 17

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Metadata

Metadata

Labels

ARMBillingMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions