Skip to content

Fix jlab.decodeRange's fiscal Q3 ranges on the 31st of a month - #84

Merged
slominskir merged 1 commit into
mainfrom
fiscal-quarter-31st
Oct 6, 2026
Merged

slominskir merged 1 commit into
mainfrom
fiscal-quarter-31st

Conversation

@slominskir-coding-agent

Copy link
Copy Markdown
Contributor

What changed

  • jlab.decodeRange in smoothness.js: on the 31st of any month, 0fiscalyearq3 and 1fiscalyearq3 started on May 1 and ended on August 1, instead of April 1 to July 1. The fiscal cases set the month before the day, and April 31 rolls into May 1. They now set the day to the 1st first. Only Q3 was wrong (October, January, and July have 31 days), but all ten fiscal cases now set the day first. This bug is in 5.2.0 too; the Java side (TimeUtil) adds months to the fiscal year's start and was right.
  • SmoothnessJsIT.decodeRangeOnTheThirtyFirst: decodes every fiscal range with the browser's clock fixed on Saturday 2026-10-31.

Compatibility

A bug fix in a public function; apps need no step, and they get it when they upgrade the weblib.

Checks

  • Against the demo before the fix, the new test failed for the two Q3 ranges only (01-May-2027 and 01-May-2026 where April 1 was expected).
  • ./gradlew build passed.
  • After rebuilding the demo, ./gradlew integrationTest ran 117 tests, none failed or skipped. The demo's log has no errors.

🤖 Generated with Claude Code

The fiscal cases set the month before the day. On the 31st, setting
April, which has 30 days, rolled into May 1, so this and last fiscal
year's Q3 started on May 1 and ended on August 1. They now set the day
to the 1st first. Only Q3 was wrong, since the other quarters and the
fiscal year start in 31-day months, but every fiscal case now sets the
day first, so they read the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@slominskir
slominskir merged commit 2aaa916 into main Oct 6, 2026
7 checks passed
@slominskir
slominskir deleted the fiscal-quarter-31st branch October 6, 2026 22:37
@slominskir-coding-agent slominskir-coding-agent Bot mentioned this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

source::ai Work done by an AI agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant