From d7c2d1bdc727e8d7d59b22be94498788629ece36 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sat, 26 Oct 2024 08:56:35 +0200 Subject: [PATCH] chore: Follow up sameEnvironment calc --- lib/utils/date_time_extension.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/date_time_extension.dart b/lib/utils/date_time_extension.dart index 0ed561af0..92fbee7bf 100644 --- a/lib/utils/date_time_extension.dart +++ b/lib/utils/date_time_extension.dart @@ -24,7 +24,7 @@ extension DateTimeExtension on DateTime { /// Checks if two DateTimes are close enough to belong to the same /// environment. bool sameEnvironment(DateTime prevTime) => - prevTime.difference(this) < const Duration(hours: 1); + difference(prevTime) < const Duration(hours: 1); /// Returns a simple time String. String localizedTimeOfDay(BuildContext context) =>