fix(scheduling): fix timezone handling for datetime-local inputs #13
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
zooper/caption-generator!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "scheduled"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Datetime-local inputs expect local time values, not UTC. Fixed all instances of toISOString().slice(0,16) to use a new formatDateTimeLocal() helper function that formats dates in local timezone.
This resolves the issue where scheduled times appeared offset from the user's actual timezone, causing confusion about when posts would be published.
Fixes timezone offset issues for users in non-UTC timezones.