From 849913dc5987997f9db96e23c7acf9c29f9c6d7f Mon Sep 17 00:00:00 2001 From: default Date: Sun, 2 Oct 2022 09:27:17 +0200 Subject: Use the time functions of xs_time.h. --- http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'http.c') diff --git a/http.c b/http.c index a58aaf4..915d5f3 100644 --- a/http.c +++ b/http.c @@ -6,6 +6,7 @@ #include "xs_encdec.h" #include "xs_openssl.h" #include "xs_curl.h" +#include "xs_time.h" #include "snac.h" @@ -27,7 +28,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url, char *k, *v; d_char *response; - date = xs_utc_time("%a, %d %b %Y %H:%M:%S GMT"); + date = xs_str_utctime(0, "%a, %d %b %Y %H:%M:%S GMT"); { xs *s = xs_replace(url, "https:/" "/", ""); -- cgit v1.2.3