Commit 2826d77e authored by Andreas Schildbach's avatar Andreas Schildbach

BackupWalletDialogFragment: Add hours and minutes to backup filename.

parent c35b725d
......@@ -260,7 +260,7 @@ public class BackupWalletDialogFragment extends DialogFragment {
passwordView.setEnabled(false);
passwordAgainView.setEnabled(false);
final DateFormat dateFormat = Iso8601Format.newDateFormat();
final DateFormat dateFormat = new Iso8601Format("yyyy-MM-dd-HH-mm");
dateFormat.setTimeZone(TimeZone.getDefault());
final StringBuilder filename = new StringBuilder(Constants.Files.EXTERNAL_WALLET_BACKUP);
......
......@@ -32,7 +32,7 @@ import android.annotation.SuppressLint;
public class Iso8601Format extends SimpleDateFormat {
private static final TimeZone UTC = TimeZone.getTimeZone("UTC");
private Iso8601Format(final String formatString) {
public Iso8601Format(final String formatString) {
super(formatString);
setTimeZone(UTC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment