StabilityNexus / StabilityNexus/Chainvoice
[BUG]: Dates in financial documents should be absolute or explicitly timezoned.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 47
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 4
Description
Bug Description
- Where?
InvoicePreview.jsx
- Issue new Date(invoice.issueDate) without timezone handling.
-
Fix Use
date-fnsordayjswith UTC. -
Why? An invoice issued on "Feb 20" in India might show as "Feb 19" in New York. Dates in financial documents should be absolute or explicitly timezoned.
Steps to Reproduce
N/A
Logs and Screenshots
N/A
Environment Details
N/A
Impact
Critical - Application is unusable
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in InvoicePreview.jsx and inspect how invoice.issueDate is converted into a displayed date. Use the issue's proposed date-fns or dayjs UTC approach as the direction, and verify that a financial document date remains the same across timezones instead of shifting by a day.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100