From ecb69d1c29ebfa6668185120a42f68f45d3e8252 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sun, 13 Oct 2024 03:47:22 +0800 Subject: [PATCH] Fix items may not be removed from summary stream due to tz --- app/lib/controller/files_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/controller/files_controller.dart b/app/lib/controller/files_controller.dart index d02b4c89..f5ad6630 100644 --- a/app/lib/controller/files_controller.dart +++ b/app/lib/controller/files_controller.dart @@ -322,7 +322,7 @@ class FilesController { _summaryStreamController.addWithValue((value) { final next = Map.of(value.summary.items); for (final f in files) { - final key = f.fdDateTime.toDate(); + final key = f.fdDateTime.toLocal().toDate(); final original = next[key]; if (original == null) { continue;