Local and UTC Dates in NHibernate
How do you get a UTC datetime hydrated from NHibernate? Dan Morphis addressed this a while ago with an interceptor.
I proposed a patch to NHibernate that adds UtcDateTime and LocalDateTime data types that will specifically get hydrated with the proper DateTimeKind value instead of DateTimeKind.Unspecified.
Usage <property name="MyDate" type="UtcDateTime"></property> <property name="LocalDate" type="LocalDateTime"></property>
You download the patch from Jira, and vote for it if you like it.