Skip to content

fix(cli): validate scheduled post timestamps strictly - #977

Open
WNZhao wants to merge 1 commit into
profullstack:masterfrom
WNZhao:fix/schedule-strict-iso-timezone
Open

fix(cli): validate scheduled post timestamps strictly#977
WNZhao wants to merge 1 commit into
profullstack:masterfrom
WNZhao:fix/schedule-strict-iso-timezone

Conversation

@WNZhao

@WNZhao WNZhao commented Aug 24, 2026

Copy link
Copy Markdown

Summary

  • reject timezone-ambiguous values passed to promote social post --schedule
  • reject calendar rollovers such as February 30 and out-of-range times
  • keep accepting ISO timestamps with Z or an explicit UTC offset

This prevents scheduled posts from running at different instants depending on the machine timezone.

Tests

  • pnpm --filter @profullstack/sh1pt build
  • pnpm exec vitest run packages/cli/src/commands/promote.test.ts (33 passed)

@WNZhao

WNZhao commented Aug 24, 2026

Copy link
Copy Markdown
Author

@ralyodio This is the PR attached to my pending uGig bug-fix bounty submission. All six required checks are green and the branch is currently mergeable. When convenient, please review it for bounty acceptance; the additional independent fixes are linked in our uGig conversation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant