-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
DateTime Kind and Postgres #188
Comments
You may find this post useful which relates to this Mapping .NET Timestamps to PostgreSQL This lists all of the breaking changes from Npgsql 6.0 with explanations. |
I read that a while ago, and my application is using the new recommended NpgSql and .net behavior. timestamptz for columns and all the datetime properties are consistently passed as Kind Utc. Which is where this bug comes in - NpgSql throws an error when the string datetime is converted to unspecified kind by Gridify. |
@alirezanet I will attempt to fix this and also complete #191 |
This was merged. |
Version
2.14.2
Details
Bringing this up from this issue - #134
And your quote -
Without this setting, datetime filtering is broken in Postgres for Gridify, and I am unable to set this in Map as I have many DateTime (nullable and not nullable) properties across many entities.
Steps to reproduce
Use any datetime property (I tried it with a nullable datetime property).
Try filtering by datetime string.
We get the error - System.ArgumentException: 'timestamp with time zone' literal cannot be generated for Unspecified DateTime: a UTC DateTime is required
The text was updated successfully, but these errors were encountered: