Skip to content

fix: support today in date arithmetic#200

Open
konard wants to merge 3 commits into
mainfrom
issue-199-144c5445f232
Open

fix: support today in date arithmetic#200
konard wants to merge 3 commits into
mainfrom
issue-199-144c5445f232

Conversation

@konard

@konard konard commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • recognize today as a dynamic date expression
  • resolve it to the current calendar date in the configured local timezone (UTC by default)
  • support date arithmetic such as today - 17.01.2023
  • add regression coverage for the reported expression and UTC/local date boundaries

Reproduction

Before this change, today - 17.01.2023 failed with Parse error: Unexpected identifier: today.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features
  • node scripts/check-file-size.mjs
  • node --test scripts/*.test.mjs
  • cargo test --all-features --verbose
  • cargo test --doc --verbose

Fixes #199

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: #199
@konard konard self-assigned this Jul 12, 2026
@konard konard changed the title [WIP] Unrecognized input: today - 17.01.2023 fix: support today in date arithmetic Jul 12, 2026
@konard konard marked this pull request as ready for review July 12, 2026 05:20
@konard

konard commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

Working session summary

Implemented and finalized PR #200.

  • Added timezone-aware today support.
  • Fixed today - 17.01.2023.
  • Added regression and timezone-boundary tests.
  • Added a changelog fragment.
  • Pushed commit 3c6a7eb0.
  • Marked PR ready for review.
  • Fresh CI passed all lint, test, package, WASM, and web-build checks.
  • Working tree is clean; PR merge state is clean.

This summary was automatically extracted from the AI working session output.

@konard

konard commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.6 Sol
  • Provider: OpenAI
  • Public pricing estimate: $11.414508

📊 Context and tokens usage:

  • 200.0K / 200K (100%) input tokens, 13.3K / 128K (10%) output tokens

Total: (200.0K + 8.8M cached) input tokens, 13.3K output tokens, $11.414508 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.6-sol
  • Thinking level: off (disabled)
  • Model: GPT-5.6 Sol (gpt-5.6-sol)

📎 Log file uploaded as Gist (2644KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard

konard commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

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.

Unrecognized input: today - 17.01.2023

1 participant