Skip to content

Commit 030fa6f

Browse files
author
Sparks, Collin
committed
Replaced DateTime reference with UtcDatetime
1 parent 791444b commit 030fa6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.Core/Data/DateTime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public DvDateTimeZone(SysDateTimeOffset dto)
201201
// Since it is constructed from a SysDateTimeOffset, all the validations should work.
202202
var success = TryValidateOffset(dto.Offset.Ticks, out _offset);
203203
Contracts.Assert(success);
204-
_dateTime = ValidateDate(new DvDateTime(dto.DateTime), ref _offset);
204+
_dateTime = ValidateDate(new DvDateTime(dto.UtcDateTime), ref _offset);
205205
Contracts.Assert(!_dateTime.IsNA);
206206
Contracts.Assert(!_offset.IsNA);
207207
AssertValid();

0 commit comments

Comments
 (0)