summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-07-08 14:20:42 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-07-08 14:20:42 +0200
commitc25c6711c6f2df31fea213e6e6f5ac421b8cd6a1 (patch)
treee04df93eb9633102845a5c4342c254e0c52b3ec9 /src/backend
parent0cbac2526ff2287e2cae6d541248393e67ea42f4 (diff)
downloadmerchant-c25c6711c6f2df31fea213e6e6f5ac421b8cd6a1.tar.gz
merchant-c25c6711c6f2df31fea213e6e6f5ac421b8cd6a1.tar.bz2
merchant-c25c6711c6f2df31fea213e6e6f5ac421b8cd6a1.zip
-change to date_s
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd_private-get-orders.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c b/src/backend/taler-merchant-httpd_private-get-orders.c
index d9059702..c2a17530 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders.c
@@ -686,14 +686,13 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh,
}
}
}
- // FIXME: use date_s, as we round to seconds anyway!
{
- const char *date_ms_str;
+ const char *date_s_str;
- date_ms_str = MHD_lookup_connection_value (connection,
+ date_s_str = MHD_lookup_connection_value (connection,
MHD_GET_ARGUMENT_KIND,
- "date_ms");
- if (NULL == date_ms_str)
+ "date_s");
+ if (NULL == date_s_str)
{
if (of.delta > 0)
of.date = GNUNET_TIME_UNIT_ZERO_TS;
@@ -706,7 +705,7 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh,
unsigned long long ll;
if (1 !=
- sscanf (date_ms_str,
+ sscanf (date_s_str,
"%llu%c",
&ll,
&dummy))
@@ -719,14 +718,14 @@ TMH_private_get_orders (const struct TMH_RequestHandler *rh,
}
of.date = GNUNET_TIME_absolute_to_timestamp (
- GNUNET_TIME_absolute_from_ms (ll));
+ GNUNET_TIME_absolute_from_s (ll));
if (GNUNET_TIME_absolute_is_never (of.date.abs_time))
{
GNUNET_break_op (0);
return TALER_MHD_reply_with_error (connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_GENERIC_PARAMETER_MALFORMED,
- "date_ms");
+ "date_s");
}
}
}