This commit is contained in:
zaccaria.majid
2022-10-05 10:53:30 +02:00
+3 -3
View File
@@ -182,7 +182,7 @@ namespace MP.SPEC.Components
currFilt.CurrPage = 0;
currFilt.lastUpdate = $"{DateTime.Now:yyyy/MM/dd HH:mm:ss}";
currFilt.dtMax = RoundDatetime(5);
currFilt.dtMin = RoundDatetime(5).AddHours(-2);
currFilt.dtMin = RoundDatetime(5).AddDays(-1);
SelFilter = currFilt;
}
@@ -202,8 +202,8 @@ namespace MP.SPEC.Components
// fermo udpate
liveUpdate = false;
// se non ho data rif uso adesso...
DateTime dtMax = selDtMax == null ? DateTime.Now : (DateTime)selDtMax;
DateTime dtMin = selDtMin == null ? DateTime.Now : (DateTime)selDtMin;
DateTime dtMax = selDtMax == null ? RoundDatetime(5) : (DateTime)selDtMax;
DateTime dtMin = selDtMin == null ? RoundDatetime(5).AddDays(-1) : (DateTime)selDtMin;
// aggiungo 2 sec
dtMax = dtMax.AddSeconds(15);
//dtMin = dtMin.AddMinutes(-30);