-
Notifications
You must be signed in to change notification settings - Fork 6
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
Doubt about DateTime and DateTimeOffset #1
Comments
Have you checked what's in the $metadata? |
Hi,
I have the same problem.
<Property Name="ValidFrom" Type="Edm.DateTime" Precision="0"
sap:label="Valid From" sap:sortable="false" sap:filterable="false"/>
This defines a property named ValidFrom of type Edm.DateTime with no time
precision (only date).
Example in an OData Response:
If you query an OData service that includes a ValidFrom field, the response
might look like this:
{
"ValidFrom": "2023-10-05T00:00:00"
}
Since Precision="0", the time portion is 00:00:00.
I hope this information is helpful. If you have any further questions or
need additional examples, please feel free to reach out.
…On Mon, 10 Feb 2025 at 08:38, DerGuteWolf ***@***.***> wrote:
Have you checked what's in the $metadata?
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG4HWHRR5ZZ7ZKGQT3VSF4L2PBJPVAVCNFSM6AAAAABWZ4EEDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBXGE3DENRQG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
oasis-tcs/odata-openapi#35 (comment) should give some info Also precision IMHO only indicated if this has milliseconds or not. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello guys!
We are using your project to generate the Swaggers docs to be imported in our clients.
But, we have a doubt regarding the "DateTime" and "DateTimeOffset".

As you can see in the image above, the URL parameter is set to "DateTimeOffset".
But, on "SEGW" we set to use "Edm.DateTime" and not "Edm.DateTimeOffset":

Please, do you know if we must set to force to use the DateTime elsewhere?
Thank you advance!
The text was updated successfully, but these errors were encountered: