From 1a08c68c79a05fea154162a2ac516a91288a4721 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 22 Dec 2021 15:35:58 -0600 Subject: [PATCH] Improve formatting in Client._make_request --- tweepy/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tweepy/client.py b/tweepy/client.py index 9f7ee60..10acdc5 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -156,7 +156,8 @@ class Client: if param_value.tzinfo is not None: param_value = param_value.astimezone(datetime.timezone.utc) request_params[param_name] = param_value.strftime( - "%Y-%m-%dT%H:%M:%S.%fZ") + "%Y-%m-%dT%H:%M:%S.%fZ" + ) # TODO: Constant datetime format string? else: request_params[param_name] = param_value -- 2.25.1