Skip to content

Refine backend UTC time handling and browser-local rendering#83

Merged
vsxd merged 3 commits intomainfrom
refactor/backend-time-utc
Mar 18, 2026
Merged

Refine backend UTC time handling and browser-local rendering#83
vsxd merged 3 commits intomainfrom
refactor/backend-time-utc

Conversation

@vsxd
Copy link
Collaborator

@vsxd vsxd commented Mar 18, 2026

Summary

  • unify backend time handling around UTC Clock, Instant, and TIMESTAMPTZ
  • add backend guardrails and cross-timezone regression coverage for token, skill, and governance endpoints
  • fix frontend token expiration UI so browser-local datetime-local values are converted to UTC ISO strings on submit and UTC timestamps are converted back to local values when editing

Verification

  • cd server && ./mvnw -pl skillhub-auth,skillhub-app -am -Dtest=ApiTokenServiceTest,TokenControllerTest,SkillControllerTest,GovernanceControllerTest,BackendTimeGuardrailTest,ClawHubCompatControllerTest -Dsurefire.failIfNoSpecifiedTests=false test
  • cd web && pnpm test -- --run web/src/shared/lib/date-time.test.ts web/src/features/token/token-expiration.test.ts
  • cd web && pnpm typecheck

@vsxd vsxd merged commit ec9e814 into main Mar 18, 2026
2 checks passed
@vsxd vsxd deleted the refactor/backend-time-utc branch March 18, 2026 09:17
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.

2 participants