Skip to content

Commit 55ebc64

Browse files
fredericDelaportehazzik
authored andcommitted
NH-4086 - TimeType may lose fractional seconds.
1 parent a83bcb2 commit 55ebc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Type/TimeType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public override object Get(DbDataReader rs, int index, ISessionImplementor sessi
5858
}
5959

6060
DateTime dbValue = Convert.ToDateTime(rs[index]);
61-
return new DateTime(1753, 01, 01, dbValue.Hour, dbValue.Minute, dbValue.Second);
61+
return BaseDateValue.Add(dbValue.TimeOfDay);
6262
}
6363
catch (Exception ex)
6464
{

0 commit comments

Comments
 (0)