From d78c58a70cb13ba048f9e367d5e641e1e7626878 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Tue, 27 Jan 2026 12:37:16 +0000 Subject: [PATCH] fix comment datetime to be parsed to timestamp in YoutubeAPI --- connectors/youtube_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/youtube_api.py b/connectors/youtube_api.py index 5dcf73d..2fbe1bb 100644 --- a/connectors/youtube_api.py +++ b/connectors/youtube_api.py @@ -71,7 +71,7 @@ class YouTubeAPI: post_id=video_id, content=comment_snippet['textDisplay'], author=comment_snippet['authorDisplayName'], - timestamp=comment_snippet['publishedAt'], + timestamp=datetime.datetime.strptime(comment_snippet['publishedAt'], "%Y-%m-%dT%H:%M:%SZ").timestamp(), reply_to=None, source="YouTube" )