gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Fixing dashed-date to milliseconds con


From: gnunet
Subject: [libeufin] branch master updated: Fixing dashed-date to milliseconds conversion.
Date: Wed, 02 Aug 2023 13:26:44 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 50505652 Fixing dashed-date to milliseconds conversion.
50505652 is described below

commit 50505652f87401184a14c2af4e9270dc49e5c2a7
Author: MS <ms@taler.net>
AuthorDate: Wed Aug 2 13:26:18 2023 +0200

    Fixing dashed-date to milliseconds conversion.
---
 util/src/main/kotlin/time.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/src/main/kotlin/time.kt b/util/src/main/kotlin/time.kt
index 13394537..9507bbad 100644
--- a/util/src/main/kotlin/time.kt
+++ b/util/src/main/kotlin/time.kt
@@ -55,7 +55,7 @@ fun LocalDateTime.millis(): Long {
 }
 
 fun LocalDate.millis(): Long {
-    val instant = Instant.from(this)
+    val instant = 
Instant.from(this.atStartOfDay().atZone(ZoneId.systemDefault()))
     return instant.toEpochMilli()
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]