Skip to content

Commit 5bf277c

Browse files
authored
Fix typo in TicksToOADate (dotnet#111236)
1 parent de8e135 commit 5bf277c

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Private.CoreLib/src/System

1 file changed

+1
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/DateTime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ private static double TicksToOADate(long value)
16631663
{
16641664
if (value == 0)
16651665
return 0.0; // Returns OleAut's zero'ed date value.
1666-
if (value < TimeSpan.TicksPerDay) // This is a fix for VB. They want the default day to be 1/1/0001 rathar then 12/30/1899.
1666+
if (value < TimeSpan.TicksPerDay) // This is a fix for VB. They want the default day to be 1/1/0001 rather than 12/30/1899.
16671667
value += DoubleDateOffset; // We could have moved this fix down but we would like to keep the bounds check.
16681668
if (value < OADateMinAsTicks)
16691669
throw new OverflowException(SR.Arg_OleAutDateInvalid);

0 commit comments

Comments
 (0)