From f1b7247b3d528a3dbffb637f9a0c9367e0b5c409 Mon Sep 17 00:00:00 2001 From: jeancf Date: Wed, 28 Jun 2023 17:57:15 +0200 Subject: [PATCH] Corrected one more float bug --- twoot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twoot.py b/twoot.py index 7f1d186..ecb2148 100755 --- a/twoot.py +++ b/twoot.py @@ -893,7 +893,7 @@ def main(argv): timestamp = datetime.strptime(time_string, '%b %d, %Y ยท %I:%M %p %Z') # Check if time is within acceptable range - if not is_time_valid(timestamp): + if not is_time_valid(timestamp.timestamp()): out_date_cnt += 1 logging.debug("Tweet outside valid time range, skipping") continue