diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-14 16:10:40 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-14 16:10:40 +0100 |
commit | ad5d54f48534ac0ad5bfd7f048bd7782e674a89b (patch) | |
tree | 4443e41c1aec412d82642b194aa3d837c9eb5cfd /src/backend/taler-merchant-httpd_private-post-products.c | |
parent | 49e2e44b09dd845d0922c0acef5ff487b52bf26d (diff) | |
download | merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.gz merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.bz2 merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.zip |
migration to protocol v11
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-products.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-products.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-products.c b/src/backend/taler-merchant-httpd_private-post-products.c index dfbec969..b8256a80 100644 --- a/src/backend/taler-merchant-httpd_private-post-products.c +++ b/src/backend/taler-merchant-httpd_private-post-products.c @@ -65,8 +65,9 @@ products_equal (const struct TALER_MERCHANTDB_ProductDetails *p1, p2->image)) && (1 == json_equal (p1->address, p2->address)) && - (p1->next_restock.abs_value_us == - p2->next_restock.abs_value_us) ); + (GNUNET_TIME_timestamp_cmp (p1->next_restock, + ==, + p2->next_restock) ) ); } @@ -105,8 +106,8 @@ TMH_private_post_products (const struct TMH_RequestHandler *rh, GNUNET_JSON_spec_json ("address", &pd.address)), GNUNET_JSON_spec_mark_optional ( - TALER_JSON_spec_absolute_time ("next_restock", - &pd.next_restock)), + GNUNET_JSON_spec_timestamp ("next_restock", + &pd.next_restock)), GNUNET_JSON_spec_end () }; |