|
108 | 108 |
|
109 | 109 | <target name="setup-teamcity-sqlite32">
|
110 | 110 | <property name="nhibernate.connection.driver_class" value="NHibernate.Driver.SQLite20Driver" />
|
| 111 | + <!-- DateTimeFormatString allows to prevent storing the fact that written date was having kind UTC, |
| 112 | + which dodges the undesirable time conversion to local done on reads by System.Data.SQLite. |
| 113 | + See https://system.data.sqlite.org/index.html/tktview/44a0955ea344a777ffdbcc077831e1adc8b77a36 |
| 114 | + and https://github.com/nhibernate/nhibernate-core/issues/1362 --> |
111 | 115 | <property name="nhibernate.dialect" value="NHibernate.Dialect.SQLiteDialect" />
|
112 |
| - <property name="nhibernate.connection.connection_string" value="Data Source=NHibernate.db" /> |
| 116 | + <property name="nhibernate.connection.connection_string" value="Data Source=NHibernate.db;DateTimeFormatString=yyyy-MM-dd HH:mm:ss.FFFFFFF;" /> |
113 | 117 | <copy todir="${bin.dir}">
|
114 | 118 | <fileset basedir="${root.dir}/lib/teamcity/sqlite/x86">
|
115 | 119 | <include name="*.dll"/>
|
|
120 | 124 | <target name="setup-teamcity-sqlite64">
|
121 | 125 | <property name="nunit-x64" value="true" />
|
122 | 126 | <property name="nhibernate.connection.driver_class" value="NHibernate.Driver.SQLite20Driver" />
|
| 127 | + <!-- DateTimeFormatString allows to prevent storing the fact that written date was having kind UTC, |
| 128 | + which dodges the undesirable time conversion to local done on reads by System.Data.SQLite. |
| 129 | + See https://system.data.sqlite.org/index.html/tktview/44a0955ea344a777ffdbcc077831e1adc8b77a36 |
| 130 | + and https://github.com/nhibernate/nhibernate-core/issues/1362 --> |
123 | 131 | <property name="nhibernate.dialect" value="NHibernate.Dialect.SQLiteDialect" />
|
124 |
| - <property name="nhibernate.connection.connection_string" value="Data Source=NHibernate.db" /> |
| 132 | + <property name="nhibernate.connection.connection_string" value="Data Source=NHibernate.db;DateTimeFormatString=yyyy-MM-dd HH:mm:ss.FFFFFFF;" /> |
125 | 133 | <copy todir="${bin.dir}">
|
126 | 134 | <fileset basedir="${root.dir}/lib/teamcity/sqlite/x64">
|
127 | 135 | <include name="*.dll"/>
|
|
0 commit comments