fix(scheduling): fix timezone handling for datetime-local inputs #13

Merged
zooper merged 1 commit from scheduled into main 2025-08-10 18:14:46 +00:00
zooper commented 2025-08-10 18:14:37 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No description provided.