Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
478 stars 306 forks source link

Hour indication of dates is modified during import of yaml file #2429

Closed mclausferranti closed 3 months ago

mclausferranti commented 3 months ago

Bug description

Hour indication of dates is modified during import of yaml file. Example: in the file there is a date '2010-02-02T00:00:00Z'. After importing the yaml file the date is modified to '2010-02-02T12:00:00Z'

Reproduction steps

  1. Go to APIs
  2. Click on +Add API.
  3. Click on OpenAPI.
  4. Select the attached file. mcsbillingservices-mcsbillingblockservice.txt (rename the file to .yaml as the file type is not supported to upload here)
  5. Click on the button create.
  6. Select imported API.
  7. Select setBillingBlock.
  8. Open form-based editor.
  9. Click on request.
  10. Select sample. You see the following date: image

But the date in the file is: image

Expected behavior

Import the date as specified in the yaml file.

Is your portal managed or self-hosted?

Managed

Release tag or commit SHA (if using self-hosted version)

API Management service name

McsTestApiManagement

Environment

Additional context

jsorohova commented 3 months ago

Hello @mclausferranti, this is an issue in Azure portal and not the Developer portal. Please, contact Azure support for assistance.