From 7cf753c64df924f4fd2f0b478fe40c318567b3ff Mon Sep 17 00:00:00 2001 From: v-raghulraja Date: Thu, 9 Jan 2025 13:12:50 +0530 Subject: [PATCH] Resolving review comments --- .../Providers/PowerFxModel/ControlRecordValue.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Microsoft.PowerApps.TestEngine/Providers/PowerFxModel/ControlRecordValue.cs b/src/Microsoft.PowerApps.TestEngine/Providers/PowerFxModel/ControlRecordValue.cs index 52dc7fa9..156fe7c2 100644 --- a/src/Microsoft.PowerApps.TestEngine/Providers/PowerFxModel/ControlRecordValue.cs +++ b/src/Microsoft.PowerApps.TestEngine/Providers/PowerFxModel/ControlRecordValue.cs @@ -175,8 +175,7 @@ protected override bool TryGetField(FormulaType fieldType, string fieldName, out if (long.TryParse(jsPropertyValueModel.PropertyValue, out milliseconds)) { var dateTimeOffset = DateTimeOffset.FromUnixTimeMilliseconds(milliseconds); - DateTime trueDateTime = dateTimeOffset.LocalDateTime; - //var trueDateTime = new DateTime(1970, 1, 1, 0, 0, 0).AddMilliseconds(milliseconds); + DateTime trueDateTime = dateTimeOffset.LocalDateTime; result = DateValue.NewDateOnly(trueDateTime.Date); } // When converted from DateTime to a string, a value from SetProperty() retains it's MMDDYYYY hh::mm::ss format