mirror of
https://github.com/bitwarden/android.git
synced 2025-03-15 18:58:59 +03:00
Add getter for Timezone to avoid race condition in tests (#376)
This commit is contained in:
parent
df71aa573a
commit
cc48e63e89
1 changed files with 4 additions and 3 deletions
|
@ -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].
|
||||
|
|
Loading…
Add table
Reference in a new issue