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