You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Malcolm created an issue — 13th February 2015, 19:53:03:
I discovered this while writing unit tests with in-memory sqlite.
I can reproduce this reliably with sqlite, I don't know if it happens with any other db.
If the nHibernate mapping contains a composite-id (even if there's only one field in it) any UtcDateTime field in the class will incorrectly map as if it's local time, ie. gains the timezone offset (though DateTime.Kind is set to UTC).
If you turn the composite-id into an id (same structure), the DateTime maps correctly.
If you switch UtcDateTime to DateTime the date is the correctly store Utc date but marked as DateTimeKind.Unspecified.
Ricardo Peres added a comment — 13th February 2015, 23:51:03:
Can you submit a unit test?
Malcolm added a comment — 16th February 2015, 18:21:39:
unit test for failing case
Malcolm added a comment — 19th February 2015, 14:15:46:
Anything else I can provide for this issue?
The text was updated successfully, but these errors were encountered:
Malcolm created an issue — 13th February 2015, 19:53:03:
Ricardo Peres added a comment — 13th February 2015, 23:51:03:
Malcolm added a comment — 16th February 2015, 18:21:39:
Malcolm added a comment — 19th February 2015, 14:15:46:
The text was updated successfully, but these errors were encountered: