Skip to content

fix(assert): validate date text and colon offsets - #1451

Merged
Chemaclass merged 38 commits into
mainfrom
fix/1404-date-bsd-fail-closed
Oct 30, 2026
Merged

Chemaclass merged 38 commits into
mainfrom
fix/1404-date-bsd-fail-closed

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

Background

Closes #1404. BSD date accepted trailing text and silently ignored colon-form timezone offsets. Date assertions now reject incomplete parses on macOS and normalize colon offsets before selecting a date backend.

Changes

  • Validate complete documented input shapes before calling BSD date.
  • Support both compact and colon-separated timezone offsets across platforms.
  • Preserve UTC, epoch and date-only handling.
  • Verified 41 date cases on macOS Bash 3.2, Linux GNU date and Bash 3.0 BusyBox, including strict runs and a second macOS timezone, plus ShellCheck and formatting.

Checklist

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

@Chemaclass Chemaclass added the bug Something isn't working label Oct 29, 2026
@Chemaclass Chemaclass self-assigned this Oct 29, 2026
@Chemaclass
Chemaclass enabled auto-merge (squash) October 29, 2026 22:11
@Chemaclass
Chemaclass disabled auto-merge October 29, 2026 22:27
@Chemaclass
Chemaclass changed the base branch from main to fix/1403-not-starts-with-haystack October 29, 2026 22:44
@Chemaclass
Chemaclass changed the base branch from fix/1403-not-starts-with-haystack to fix/1402-snapshot-dash-value October 30, 2026 01:48
Base automatically changed from fix/1402-snapshot-dash-value to main October 30, 2026 07:15
@Chemaclass
Chemaclass merged commit 9e35717 into main Oct 30, 2026
68 of 70 checks passed
@Chemaclass
Chemaclass deleted the fix/1404-date-bsd-fail-closed branch October 30, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date assertions on macOS parse trailing text and colon offsets as local time

2 participants