mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
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:
1 parent
c5aefd03fb
commit
a033aa9558
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user