Fix time zone issue when scheduling posts for social media

Convert scheduledDate to ISO string format in `new-post.tsx` to ensure correct time zone handling for scheduled posts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/8Nctbk0
This commit is contained in:
michaelschal committed 2025-10-09 11:01:03 +00:00
1 parent c5aefd03fb
commit a033aa9558
1 file changed
+1 -1
+1 -1
View File
@@ -268,7 +268,7 @@ export default function NewPost() {
createPostMutation.mutate({
content: postText,
scheduledFor: scheduledDate || undefined,
scheduledFor: scheduledDate ? new Date(scheduledDate).toISOString() : undefined,
mediaIds: selectedMedia.length > 0 ? selectedMedia : undefined,
pageIds: selectedPages,
postType,