From e9a336100b55ce67357f94ea7b0403e441a3bce0 Mon Sep 17 00:00:00 2001 From: Fumiaki Yoshimatsu Date: Thu, 4 Jun 2020 16:36:23 -0400 Subject: [PATCH] Display backup date in users locale on restore. Fixes #9693 --- .../securesms/registration/fragments/RestoreBackupFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/registration/fragments/RestoreBackupFragment.java b/app/src/main/java/org/thoughtcrime/securesms/registration/fragments/RestoreBackupFragment.java index b0e4a0f8f..675bbe1b7 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/registration/fragments/RestoreBackupFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/registration/fragments/RestoreBackupFragment.java @@ -126,7 +126,7 @@ public final class RestoreBackupFragment extends BaseRegistrationFragment { .navigate(RestoreBackupFragmentDirections.actionNoBackupFound()); } else { restoreBackupSize.setText(getString(R.string.RegistrationActivity_backup_size_s, Util.getPrettyFileSize(backup.getSize()))); - restoreBackupTime.setText(getString(R.string.RegistrationActivity_backup_timestamp_s, DateUtils.getExtendedRelativeTimeSpanString(requireContext(), Locale.US, backup.getTimestamp()))); + restoreBackupTime.setText(getString(R.string.RegistrationActivity_backup_timestamp_s, DateUtils.getExtendedRelativeTimeSpanString(requireContext(), Locale.getDefault(), backup.getTimestamp()))); restoreButton.setOnClickListener((v) -> handleRestore(v.getContext(), backup)); }