Skip to content

Commit be2b20f

Browse files
committed
Fix datetime format for published date
1 parent 6a0a776 commit be2b20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _get_publish_date(self, published_at: str = None) -> str:
110110
"""Return the publish date, defaulting to now if not provided."""
111111
if published_at:
112112
return published_at
113-
return datetime.now(ZoneInfo("UTC")).strftime("%Y-%m-%d %H:%M:%S")
113+
return datetime.now(ZoneInfo("UTC")).strftime("%Y-%m-%dT%H:%M:%SZ")
114114

115115
def build_post_data(self) -> Dict[str, Any]:
116116
"""Build the post data for the Hashnode API."""

0 commit comments

Comments
 (0)