question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API date-time return value wrong

See original GitHub issue

In the openapi documentation it’s documented that you return a date-time. This is the case for meta data modifiedOn as an example at https://www.apicur.io/registry/docs/apicurio-registry/1.3.3.Final/assets-attachments/registry-rest-api.htm#operation/getArtifactMetaDataByGlobalId.

As you can guess now you return a “integer” timestamp which cases my generated client in go to fail as it’s expecting a valid date-time string format as seen at https://swagger.io/docs/specification/data-models/data-types/

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
jsenkocommented, Feb 24, 2021

I see, sounds good. This actually results in a more decoupled deployment, so we could start there, and optionally add more integration as we go.

1reaction
EricWittmanncommented, Feb 24, 2021

I’ll leave the creation of the repository and whatnot to you guys. I think you have sufficient privs within the Apicurio GH org to do that. If not, please let me know. Once the repo is created, let @dweber019 know so they can submit a PR! 😃 😃

Thanks everyone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebApi return wrong datetime - Stack Overflow
2017 3:30PM, when I run HttpClient query through the web api, then i get the value 2.2.2017 11:30AM. So even if I convert...
Read more >
The time returned from the REST API is wrong
This article covers a scenario where developers are consuming the REST API using C# server-side integration. This article is not as relevant ...
Read more >
rest api - DateTime Format Outputting Wrong Time
1 Answer 1 ... Salesforce stores all date-time values in UTC, but displays them in the user's time zone in the UI. Almost...
Read more >
DateTime.Parse Method (System) - Microsoft Learn
If s contains time zone information, this method returns a DateTime value whose Kind property is DateTimeKind.Local and converts the date and time...
Read more >
Time zones - Django documentation
This function returns the current date and time as a naive datetime when USE_TZ = False and as an aware datetime when USE_TZ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found