Skip to content
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

system.dateonly' to type 'system.iconvertible' #341

Closed
exitxhu opened this issue Jul 25, 2023 · 2 comments
Closed

system.dateonly' to type 'system.iconvertible' #341

exitxhu opened this issue Jul 25, 2023 · 2 comments

Comments

@exitxhu
Copy link

exitxhu commented Jul 25, 2023

hello
im currentlu developing a database provider for EF based on your client, and that's going well.
but there is an issue while using DateOnly type.
I'm currently using lates version available: 6.7.2
i narrow it down to this method: HttpParameterFormatter.Format()

case DateType dt:
                return Convert.ToDateTime(value, CultureInfo.InvariantCulture).ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);

the issue is Convert class dose not support that cast :

Convert.ToDateTime(new DateOnly(), CultureInfo.InvariantCulture)

which throws InvalidCastException:
Unable to cast object of type 'System.DateOnly' to type 'System.IConvertible'

can you fix it? tnx in advance

@DarkWanderer
Copy link
Owner

Hi. Please try release 6.7.3

@exitxhu
Copy link
Author

exitxhu commented Jul 26, 2023

totally fixed
great work keep it up

@exitxhu exitxhu closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants