Skip to content

fix: accept valid quarter-hour profile UTC offsets - #203

Merged
duckdegen merged 1 commit into
mainfrom
fix/utc-offset-validation
Sep 24, 2026
Merged

duckdegen merged 1 commit into
mainfrom
fix/utc-offset-validation

Conversation

@duckdegen

Copy link
Copy Markdown
Member

Saving profile job preferences rejected valid UTC offsets such as 3, 5.5, and 5.75. The existing divisibility validator truncates the divisor 0.25 to zero, so every supplied numeric offset failed validation.

Replace it with a shared quarter-hour check using integer quarter-hours. Keep the existing numeric validation and -12 to +14 bounds, and provide a clear error for unsupported increments.

Validation: reproduced 109 failures before the fix; all 200 profile tests now pass, including every allowed quarter-hour offset, numeric strings, unset values, invalid increments, and bounds through the production request validation settings. Production build and changed-file lint pass.

@sonarqubecloud

Copy link
Copy Markdown

@duckdegen
duckdegen merged commit 25828eb into main Sep 24, 2026
3 checks passed
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