mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-18 16:25:27 +02:00
Future!
Let's just hope that no time zone disappears from this planet in the future
This commit is contained in:
parent
539538ae34
commit
2d828ab272
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user