We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791444b commit 030fa6fCopy full SHA for 030fa6f
src/Microsoft.ML.Core/Data/DateTime.cs
@@ -201,7 +201,7 @@ public DvDateTimeZone(SysDateTimeOffset dto)
201
// Since it is constructed from a SysDateTimeOffset, all the validations should work.
202
var success = TryValidateOffset(dto.Offset.Ticks, out _offset);
203
Contracts.Assert(success);
204
- _dateTime = ValidateDate(new DvDateTime(dto.DateTime), ref _offset);
+ _dateTime = ValidateDate(new DvDateTime(dto.UtcDateTime), ref _offset);
205
Contracts.Assert(!_dateTime.IsNA);
206
Contracts.Assert(!_offset.IsNA);
207
AssertValid();
0 commit comments