gnunet-svn
[Top][All Lists]
Advanced

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

[taler-depolymerization] branch master updated: fix timestamp (protocol


From: gnunet
Subject: [taler-depolymerization] branch master updated: fix timestamp (protocol change)
Date: Thu, 08 Sep 2022 10:44:27 +0200

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

grothoff pushed a commit to branch master
in repository depolymerization.

The following commit(s) were added to refs/heads/master by this push:
     new c840884  fix timestamp (protocol change)
c840884 is described below

commit c840884e01cc2a5ee76f5a96dd4b4deb6706af07
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Thu Sep 8 10:44:22 2022 +0200

    fix timestamp (protocol change)
---
 common/src/api_common.rs | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/common/src/api_common.rs b/common/src/api_common.rs
index 0b14948..31e6749 100644
--- a/common/src/api_common.rs
+++ b/common/src/api_common.rs
@@ -87,14 +87,13 @@ impl serde::Serialize for Timestamp {
     {
         let mut se_struct = se.serialize_struct("Timestamp", 1)?;
         match self {
-            Timestamp::Never => se_struct.serialize_field("t_ms", "never")?,
+            Timestamp::Never => se_struct.serialize_field("t_s", "never")?,
             Timestamp::Time(time) => se_struct.serialize_field(
-                "t_ms",
+                "t_s",
                 &(time
                     .duration_since(SystemTime::UNIX_EPOCH)
                     .unwrap()
-                    .as_secs() as u128
-                    * 1000),
+                    .as_secs() as u128),
             )?,
         };
 

-- 
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]