commit 336fb2be8705f1550a308cf667a2794d81ddb601
parent db7782aefcc036970b8bd6fbde87aef43740db37
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Fri, 10 Jul 2026 09:02:17 +0200
mask also on zero
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/util/product_sold_serialize.c b/src/util/product_sold_serialize.c
@@ -104,7 +104,8 @@ TALER_MERCHANT_product_sold_serialize (
GNUNET_JSON_pack_array_incref ("taxes",
(json_t *) p->taxes)),
GNUNET_JSON_pack_conditional (
- ! GNUNET_TIME_absolute_is_never (p->delivery_date.abs_time),
+ ! (GNUNET_TIME_absolute_is_zero (p->delivery_date.abs_time) ||
+ GNUNET_TIME_absolute_is_never (p->delivery_date.abs_time)),
GNUNET_JSON_pack_timestamp ("delivery_date",
p->delivery_date)),
GNUNET_JSON_pack_uint64 ("product_money_pot",