Fix items may not be removed from summary stream due to tz

This commit is contained in:
Ming Ming 2024-10-13 03:47:22 +08:00
parent 01697b6fbb
commit ecb69d1c29

View file

@ -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;