From 5b9f6db1cdcef3db554c1bf3f9419ac236c48247 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 18 Feb 2019 22:19:22 +0200 Subject: [PATCH] avoid deprecated Date.getMonth API --- .../ui/transaction_list/TransactionListAdapter.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java index 6cf729dc..361458e4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java @@ -44,6 +44,8 @@ import net.ktnx.mobileledger.utils.MLDB; import java.text.DateFormat; import java.util.Date; +import java.util.GregorianCalendar; +import java.util.TimeZone; import static net.ktnx.mobileledger.utils.DimensionUtils.dp2px; @@ -86,7 +88,10 @@ public class TransactionListAdapter extends RecyclerView.Adapter