Fixed that due to time zone short after midnight calculated day may have been e.g. 30 days + 1 hour -> bank asked for TAN
This commit is contained in:
parent
56972da14d
commit
977e5101e6
|
@ -186,7 +186,8 @@ open class FinTsClient @JvmOverloads constructor(
|
|||
open fun tryGetTransactionsOfLast90DaysWithoutTan(bank: BankData, customer: CustomerData, account: AccountData,
|
||||
hasRetrievedTransactionsWithTanJustBefore: Boolean): GetTransactionsResponse {
|
||||
|
||||
val ninetyDaysAgo = Date(Date().time - NinetyDaysAgoMilliseconds)
|
||||
val now = Date()
|
||||
val ninetyDaysAgo = Date(now.time - NinetyDaysAgoMilliseconds - now.timezoneOffset * 60 * 1000) // map to UTC
|
||||
|
||||
val response = getTransactions(GetTransactionsParameter(account.supportsRetrievingBalance, ninetyDaysAgo), bank, customer, account)
|
||||
|
||||
|
|
Loading…
Reference in New Issue