Skip to content

Commit 1a353ff

Browse files
committed
More suggestions from code review
1 parent 5d6b354 commit 1a353ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/NHibernate/Type/TimeOnlyAsDateTimeType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace NHibernate.Type
1515
/// </summary>
1616
/// <remarks>
1717
/// <para>
18-
/// This defaults the Date to "1753-01-01" - which should not matter because
18+
/// This defaults the Date to "2000-01-01" - which should not matter because
1919
/// using this Type indicates that you don't care about the Date portion of the DateTime.
2020
/// However, if you need to adjust this base value, you can specify the parameter 'BaseDateValue' on the type mapping,
2121
/// using the date format 'yyyy-MM-dd'
@@ -24,7 +24,7 @@ namespace NHibernate.Type
2424
[Serializable]
2525
public class TimeOnlyAsDateTimeType : AbstractTimeOnlyType<DateTime>, IParameterizedType
2626
{
27-
private DateTime _baseDateValue = new(1753, 01, 01);
27+
private DateTime _baseDateValue = new(2000, 01, 01);
2828
private readonly string _sqlFormat;
2929
/// <summary>
3030
/// Default constructor. Sets the fractional seconds precision (scale) to 0

src/NHibernate/Type/TimeOnlyAsTimeType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ namespace NHibernate.Type
1717
/// <para>
1818
/// Some DB drivers will use a <see cref="TimeSpan"/> value for the <see cref="DbType.Time"/> column, whereas
1919
/// others will use a full <see cref="System.DateTime" />. In the latter case, the date part defaults to
20-
/// to "1753-01-01" - which should not matter because using this Type indicates that you don't care about the Date portion of the DateTime.
20+
/// to "2000-01-01" - which should not matter because using this Type indicates that you don't care about the Date portion of the DateTime.
2121
/// However, if you need to adjust this base value, you can specify the parameter 'BaseDateValue' on the type mapping,
2222
/// using the date format 'yyyy-MM-dd'
2323
/// </para>
2424
/// </remarks>
2525
[Serializable]
2626
public class TimeOnlyAsTimeType : AbstractTimeOnlyType<object>, IParameterizedType
2727
{
28-
private DateTime BaseDateValue = new(1753, 01, 01);
28+
private DateTime BaseDateValue = new(2000, 01, 01);
2929
private readonly string _sqlFormat;
3030

3131
/// <summary>

0 commit comments

Comments
 (0)