Closed elandev closed 4 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is there a solution to this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Unfortunately, we can't accept project zip files as reproduction cases. Please paste sufficient code to reproduce here, or submit a PR with a failing test case.
Describe the question
I am inserting a row into the database where the DateTime property value is in UTC.
When I query the data back from the database it is not returned as UTC, but as the kind "Unspecified".
This causes other issues when doing datetime and interval comparisons. Thus, I have to manually convert the datetimes from the database to UTC, before doing any such comparisons.
Is there a way, possibly through a property attribute, to indicate that the DateTime should be of the kind UTC?
Steps to reproduce
Look at the console output and you will see:
TestMySqlDateTime.zip