docs: add JSDoc for timezone helpers - #79
Merged
Merged
Conversation
👋 Welcome to PACT OS, @vikas-mallikarjuna! 🚀Thank you for taking the time to open your first pull request on PACT! We are thrilled to have you here in our open-source community. 🔍 What Happens Next?
📚 Helpful Quick Links
Thank you for helping make PACT better! Plan. Track. Improve. Repeat. 🏛️✨ |
TheVicky2
approved these changes
Sep 18, 2026
Contributor
Author
|
Thank you! I'm glad I could contribute to PACT OS. 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🏛️ PACT Pull Request
1. Related Issue
Closes #68
2. Summary of Changes
Added complete JSDoc documentation for the timezone helper functions
localToUtcandutcToDatetimeLocalInputinsrc/lib/time.ts.The documentation includes parameters, return values, supported date/time
formats, timezone information, and usage examples.
3. Motivation & Context (Optional for Micro-PRs)
4. Implementation Details (Optional for Micro-PRs)
5. Testing & Local Validation
npm run lint— ESLint passed with 0 errorsnpx tsc --noEmit— TypeScript strict check passed with 0 errorsnpm test(ornode scratch/run-tests.mjs) — 56-suite authoritative test matrix passednpm run test:file -- <file>— targeted single test suite passed (for micro-contributions)node scratch/secret-scan.mjs— Zero secrets or sensitive credentials detectednpm run build— Production bIf this is a documentation-only or micro PR, specify which verification was performed:
6. UI & Visual Changes (Optional)
375px), tablet (768px), and desktop (1280px+)docs/DESIGN_SYSTEM.md)7. Database & Security Impact (Optional)
supabase/migrations/auth.uid()supabase.auth.getUser()8. Documentation Impact (Optional)
docs/orREADME.md)9. Contributor Quality Checklist
Please verify the following before requesting a maintainer review:
.env.localfiles are included in this PR.upstream/mainwith an appropriate prefix (e.g.,feat/,fix/,docs/,ui/).type(scope): description).git diffto ensure no stray files or debugging artifacts were committed.10. Reviewer Notes (Optional)