[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: use timezones for EBICS order params
From: |
gnunet |
Subject: |
[libeufin] branch master updated: use timezones for EBICS order params |
Date: |
Fri, 19 Jun 2020 13:09:36 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 47e778d use timezones for EBICS order params
47e778d is described below
commit 47e778d7d05c43e3f6b489143b2163082bae127b
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Fri Jun 19 16:39:30 2020 +0530
use timezones for EBICS order params
---
nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt | 4 ++++
util/src/main/kotlin/time.kt | 10 ++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
index 1ae35ca..abc7375 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
@@ -220,6 +220,10 @@ object NexusBankAccountsTable : IdTable<String>() {
val bankCode = text("bankCode")
val defaultBankConnection = reference("defaultBankConnection",
NexusBankConnectionsTable).nullable()
+ val lastStatementCreationTimestamp =
long("lastStatementCreationTimestamp").nullable()
+ val lastReportCreationTimestamp =
long("lastReportCreationTimestamp").nullable()
+ val lastNotificationCreationTimestamp =
long("lastNotificationCreationTimestamp").nullable()
+
// Highest bank message ID that this bank account is aware of.
val highestSeenBankMessageId = integer("highestSeenBankMessageId")
diff --git a/util/src/main/kotlin/time.kt b/util/src/main/kotlin/time.kt
index 187c431..6d6e378 100644
--- a/util/src/main/kotlin/time.kt
+++ b/util/src/main/kotlin/time.kt
@@ -23,18 +23,16 @@ import java.time.*
import java.time.format.DateTimeFormatter
fun LocalDateTime.toZonedString(): String {
- val dateFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME
- return dateFormatter.format(this.atZone(ZoneId.systemDefault()))
+ return
DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.atZone(ZoneId.systemDefault()))
}
fun LocalDateTime.toDashedDate(): String {
- val dtf = DateTimeFormatter.ISO_LOCAL_DATE
- return dtf.format(this)
+ return DateTimeFormatter.ISO_DATE.format(this)
}
fun parseDashedDate(date: String): LocalDateTime {
- val dtf = DateTimeFormatter.ISO_LOCAL_DATE
- val asDate = LocalDate.from(LocalDate.parse(date, dtf))
+ val dtf = DateTimeFormatter.ISO_DATE
+ val asDate = LocalDate.parse(date, dtf)
return asDate.atStartOfDay()
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: use timezones for EBICS order params,
gnunet <=