From: Damyan Ivanov Date: Mon, 18 Feb 2019 20:19:22 +0000 (+0200) Subject: avoid deprecated Date.getMonth API X-Git-Tag: v0.7~67 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=5b9f6db1cdcef3db554c1bf3f9419ac236c48247;p=mobile-ledger.git avoid deprecated Date.getMonth API --- 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