Skip to content
Snippets Groups Projects
Unverified Commit 82f7f394 authored by Juraj Kusnier's avatar Juraj Kusnier Committed by GitHub
Browse files

update times (#3491)

parent b5c76217
No related branches found
Tags v2.4.1-RC1
No related merge requests found
......@@ -124,11 +124,11 @@ class CertificatesViewModel @AssistedInject constructor(
private fun Collection<TestCertificateWrapper>.toCertificateItems(): List<CertificatesItem> = this
.map { certificate ->
val localRegistrationTime = certificate.registeredAt.toUserTimeZone()
val registrationTime = certificate.registeredAt.toUserTimeZone()
if (certificate.isCertificateRetrievalPending) {
CovidTestCertificateErrorCard.Item(
testDate = localRegistrationTime,
testDate = registrationTime,
isUpdatingData = certificate.isUpdatingData,
onRetryAction = {
refreshTestCertificate(certificate.identifier)
......@@ -143,7 +143,7 @@ class CertificatesViewModel @AssistedInject constructor(
)
} else {
CovidTestCertificateCard.Item(
testDate = localRegistrationTime,
testDate = certificate.testCertificate?.sampleCollectedAt?.toUserTimeZone() ?: registrationTime,
testPerson =
certificate.testCertificate?.firstName + " " +
certificate.testCertificate?.lastName,
......
......@@ -26,7 +26,7 @@ class CovidTestCertificateErrorCard(parent: ViewGroup) :
) -> Unit = { item, _ ->
testTime.text = context.getString(
R.string.test_certificate_time,
R.string.test_certificate_registration_time,
item.testDate.toDayFormat(),
item.testDate.toShortTimeFormat()
)
......
......@@ -64,6 +64,8 @@
<!-- XTXT: Test certificate time -->
<string name="test_certificate_time">Test durchgeführt am %1$s, %2$s Uhr</string>
<!-- XTXT: Test certificate registration time -->
<string name="test_certificate_registration_time">"Registriert am %1$s, %2$s"</string>
<!-- XTXT: Test error label -->
<string name="test_certificate_error_label">Fehler bei der Zertifikatsabfrage</string>
<!-- XBUT: Test error retry button -->
......
......@@ -64,6 +64,8 @@
<!-- XTXT: Test certificate time -->
<string name="test_certificate_time">"Test performed on %1$s, %2$s"</string>
<!-- XTXT: Test certificate registration time -->
<string name="test_certificate_registration_time">"Registriert am %1$s, %2$s"</string>
<!-- XTXT: Test error label -->
<string name="test_certificate_error_label">"Error during certificate retrieval"</string>
<!-- XBUT: Test error retry button -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment