Use DateTime in ISO format in request and response
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 505
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
Short summary (3-5 sentences) describing the issue.
We want to use the ISO date-time format yyyy-MM-dd'T'HH:mm:ssZ for the Odata API request and response.
Which assemblies and versions are known to be affected e.g. OData WebApi lib 6.1.0
Microsoft.AspNetCore.OData(8.0.2)
linq2db.EntityFrameworkCore(5.5.0)
What is actually happening.
{
"id": 11123,
"customer_id": 3,
"customer_name": "Test By Vishal Thoriya",
"receipted_at": "2018-11-15T12:00:00+05:30",
"payment_method_type": "EFT",
"reference": "erytruy",
"amount": 113.0000,
"payment_processing_type": "manual",
"transaction_id": "erytruy",
"status": "Completed",
"customer_type": "buyer"
},
Currently, it is giving results in above datetime format "2018-11-15T12:00:00+05:30", but we want in "2021-04-13T14:15:22Z"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Reproduce the OData request and response behavior with Microsoft.AspNetCore.OData 8.0.2 and linq2db.EntityFrameworkCore 5.5.0, then trace where DateTime formatting is selected; done when the API uses the requested yyyy-MM-dd'T'HH:mm:ssZ format consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100