StabilityNexus / StabilityNexus/Chainvoice

[BUG]: Dates in financial documents should be absolute or explicitly timezoned.

Open
#121 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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-fns or dayjs with 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.