From be2b20f137310ee039f6051d59efab510240c07c Mon Sep 17 00:00:00 2001 From: jacklinke Date: Wed, 21 Aug 2024 00:30:32 -0400 Subject: [PATCH] Fix datetime format for published date --- entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.py b/entrypoint.py index 0a374cc..f2d8d29 100644 --- a/entrypoint.py +++ b/entrypoint.py @@ -110,7 +110,7 @@ def _get_publish_date(self, published_at: str = None) -> str: """Return the publish date, defaulting to now if not provided.""" if published_at: return published_at - return datetime.now(ZoneInfo("UTC")).strftime("%Y-%m-%d %H:%M:%S") + return datetime.now(ZoneInfo("UTC")).strftime("%Y-%m-%dT%H:%M:%SZ") def build_post_data(self) -> Dict[str, Any]: """Build the post data for the Hashnode API."""