Let's just hope that no time zone disappears from this planet in the future
This commit is contained in:
Sad Ellie 2023-10-15 22:46:30 +03:00
parent 539538ae34
commit 2d828ab272

View File

@ -53,9 +53,11 @@ class TimeZonesRepository @Inject constructor(
.map { list ->
val favorites = mutableListOf<FavoriteZone>()
list.forEach { entity ->
val tz = TimeZone.getTimeZone(entity.id)
if (tz.id == "Etc/Unknown") return@forEach
favorites.add(
FavoriteZone(
timeZone = TimeZone.getTimeZone(entity.id),
timeZone = tz,
position = entity.position,
label = entity.label
)