diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-05 21:54:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 21:54:11 +0200 |
commit | 54e63f01df85ee0470493c6d0de29576ce3371c4 (patch) | |
tree | 174ef13378081c4845a9f0adc52bcac97674aff2 /src/bank-lib/bank_api_debit.c | |
parent | 6de49ea2c02e311e5f5366005bd3497a9bb25187 (diff) | |
download | exchange-54e63f01df85ee0470493c6d0de29576ce3371c4.tar.xz |
fix #6408: make sure all timestamps are always rounded when they arrive over JSON, or 400 the requester; similarly don't tolerate anything else as client
Diffstat (limited to 'src/bank-lib/bank_api_debit.c')
-rw-r--r-- | src/bank-lib/bank_api_debit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c index 367f6c7ed..217685dd4 100644 --- a/src/bank-lib/bank_api_debit.c +++ b/src/bank-lib/bank_api_debit.c @@ -90,8 +90,8 @@ parse_account_history (struct TALER_BANK_DebitHistoryHandle *hh, struct GNUNET_JSON_Specification hist_spec[] = { TALER_JSON_spec_amount ("amount", &td.amount), - GNUNET_JSON_spec_absolute_time ("date", - &td.execution_date), + TALER_JSON_spec_absolute_time ("date", + &td.execution_date), GNUNET_JSON_spec_uint64 ("row_id", &row_id), GNUNET_JSON_spec_fixed_auto ("wtid", |