π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Fix bug in daysInSameWeek check
Neeraj Gupta22ff31824917
diff --git a/mobile/lib/utils/date_time_util.dart b/mobile/lib/utils/date_time_util.dartindex 58c3cb483e..d60cd5d79f 100644--- a/mobile/lib/utils/date_time_util.dart+++ b/mobile/lib/utils/date_time_util.dart@@ -29,6 +29,11 @@ bool areFromSameDay(int firstCreationTime, int secondCreationTime) {}bool areDatesInSameWeek(DateTime date1, DateTime date2) {+ if (date1.year == date2.year &&+ date1.month == date2.month &&+ date1.day == date2.day) {+ return true;+ }final int dayOfWeek1 = date1.weekday;final int dayOfWeek2 = date2.weekday;// Calculate the start and end dates of the week for both dates