From: Damyan Ivanov Date: Wed, 27 Nov 2019 06:31:17 +0000 (+0200) Subject: fix saving transaction date when it is null (regression) X-Git-Tag: v0.11.0~8 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=4c2d1b2095d022074deed016e95cd3cca3b9f624;p=mobile-ledger.git fix saving transaction date when it is null (regression) --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java b/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java index b444e332..cfbf5222 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java @@ -39,6 +39,8 @@ import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.nio.charset.StandardCharsets; +import java.util.Date; +import java.util.GregorianCalendar; import java.util.List; import java.util.Locale; import java.util.Map; @@ -144,7 +146,13 @@ public class SendTransactionTask extends AsyncTask