Add getter for Timezone to avoid race condition in tests (#376)

This commit is contained in:
David Perez authored and Álison Fernandes committed 2024-06-20 17:08:07 +01:00
1 parent df71aa573a
commit cc48e63e89
1 file changed
+4 -3
@@ -14,9 +14,10 @@ import com.x8bit.bitwarden.ui.vault.feature.vault.VaultState
import java.time.format.DateTimeFormatter
import java.util.TimeZone
private val dateTimeFormatter = DateTimeFormatter
.ofPattern("M/d/yy hh:mm a")
.withZone(TimeZone.getDefault().toZoneId())
private val dateTimeFormatter
get() = DateTimeFormatter
.ofPattern("M/d/yy hh:mm a")
.withZone(TimeZone.getDefault().toZoneId())
/**
* Transforms [VaultData] into [VaultState.ViewState].