Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): sort time zones by name within the same offset (#32087)

Lee, Hyo jun83594a0ceebd
diff --git a/mobile/lib/widgets/common/date_time_picker.dart b/mobile/lib/widgets/common/date_time_picker.dart
index 6b4f714e5f..6b30efe820 100644
--- a/mobile/lib/widgets/common/date_time_picker.dart
+++ b/mobile/lib/widgets/common/date_time_picker.dart
@@ -181,6 +181,7 @@ abstract class _TimeZoneOffset with _$TimeZoneOffset implements Comparable<_Time
@override
int compareTo(_TimeZoneOffset other) {
- return offsetInMilliseconds.compareTo(other.offsetInMilliseconds);
+ final offset = offsetInMilliseconds.compareTo(other.offsetInMilliseconds);
+ return offset != 0 ? offset : location.name.compareTo(other.location.name);
}
}