Implement time-range filter
Some checks failed
Build Docker and Deploy / Build Docker Container (push) Successful in 52s
Build Docker and Deploy / Run Unit-Tests (push) Failing after 11m28s
Build Docker and Deploy / Deploy to Server (push) Has been skipped

This commit is contained in:
2025-05-11 16:32:55 +02:00
parent 255fc9337c
commit 3e0c4845e9
6 changed files with 31 additions and 54 deletions

View File

@@ -340,9 +340,14 @@ class _MessageListPageState extends State<MessageListPage> with RouteAware {
var chipletsTimeRange = _filterChiplets.where((p) => p.type == MessageFilterChipletType.timeRange).toList();
if (chipletsTimeRange.isNotEmpty) {
//TODO
//filter.timeAfter = chipletsTimeRange[0].value1 as DateTime;
//filter.timeBefore = chipletsTimeRange[0].value2 as DateTime;
var t0 = (chipletsTimeRange[0].value as DateTimeRange).start.toLocal();
var t1 = (chipletsTimeRange[0].value as DateTimeRange).end.toLocal();
t0 = DateTime(t0.year, t0.month, t0.day, 0, 0, 0, 0);
t1 = DateTime(t1.year, t1.month, t1.day, 23, 59, 59, 999);
filter.timeAfter = t0;
filter.timeBefore = t1;
}
return filter;