From 8b3dd615a1c7501e19e6d6733c6ada71eb2eadb4 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Sat, 21 Jul 2018 12:50:50 +0200 Subject: [PATCH] fix timestamps --- src/reclaim/jwt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reclaim/jwt.c b/src/reclaim/jwt.c index 41a3747ed..cb1213dad 100644 --- a/src/reclaim/jwt.c +++ b/src/reclaim/jwt.c @@ -140,13 +140,13 @@ jwt_create_from_list (const struct GNUNET_CRYPTO_EcdsaPublicKey *aud_key, "aud", json_string (audience)); //iat json_object_set_new (body, - "iat", json_integer (time_now.abs_value_us)); + "iat", json_integer (time_now.abs_value_us / (1000*1000))); //exp json_object_set_new (body, - "exp", json_integer (exp_time.abs_value_us)); + "exp", json_integer (exp_time.abs_value_us / (1000*1000))); //nbf json_object_set_new (body, - "nbf", json_integer (time_now.abs_value_us)); + "nbf", json_integer (time_now.abs_value_us / (1000*1000))); //nonce if (NULL != nonce) json_object_set_new (body, -- 2.25.1