From: Schanzenbach, Martin Date: Sat, 21 Jul 2018 10:50:50 +0000 (+0200) Subject: fix timestamps X-Git-Tag: v0.11.0~322^2~56 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b3dd615a1c7501e19e6d6733c6ada71eb2eadb4;p=oweals%2Fgnunet.git fix timestamps --- 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,