-
-
Notifications
You must be signed in to change notification settings - Fork 803
Labels
Description
Product
Hot Chocolate
Version
15.1.12
Link to minimal reproduction
graphql-platform/src/HotChocolate/Core/src/Types/Utilities/DefaultTypeConverter.Setup.cs
Line 88 in 7908bfb
| registry.Register<DateTime, TimeOnly>(from => TimeOnly.FromDateTime(from.Date)); |
Steps to reproduce
Sorry for using a link to the repo itself, but it's much easier to look at the code than to create a project reproducing this. As you can see in the linked line (and L86 above), the TimeOnly is constructed from the Date part of the datetime, which will invariably return zero.
What is expected?
Time part of the DateTime(Offset) is returned
What is actually happening?
Zero time is returned all the time
Relevant log output
Additional context
No response
Reactions are currently unavailable