Skip to content

update(deps): upgrade jiff to 1.x and honour strftime_now format and zone - #3489

Merged
inureyes merged 2 commits into
mainfrom
update/issue-3480-jiff-1x-strftime-now
Nov 27, 2026
Merged

inureyes merged 2 commits into
mainfrom
update/issue-3480-jiff-1x-strftime-now

Conversation

@inureyes

Copy link
Copy Markdown
Member

Summary

Upgrades jiff from 0.2.46 to 1.0.3 and makes the chat-template strftime_now honour its format argument and the host time zone. It used to return the UTC date as %d %b %Y whatever the template asked for. day_month_year and day_month_year_now are removed (only tests used them), and the existing %d %b %Y test now goes through strftime_in.

jiff features: std, tz-system, tzdb-zoneinfo (host zoneinfo on Unix), tzdb-bundle-platform (bundled database on Windows only). Output of every other timestamp is unchanged and all pre-existing clock_tests.rs assertions pass as written. The host zone falls back to UTC when it cannot be determined. An unsupported directive (for example %J) returns the format unchanged and logs once at debug level.

cargo tree -p mlxcel -e normal -i jiff before: jiff v0.2.46. After: jiff v1.0.3. Lock changes: jiff 0.2.46 to 1.0.3, jiff-core 0.1.8 to 1.0.2, jiff-static 0.2.46 to 1.0.3, new jiff-tzdb 1.0.0 and jiff-tzdb-platform 1.0.0 (the last two are only pulled in on Windows).

Test plan

Remote CI was cancelled by maintainer decision; validation is local.

  • cargo fmt --all -- --check
  • cargo clippy -p mlxcel --lib --tests --features metal,accelerate -- -D warnings clean
  • cargo test -p mlxcel --lib --profile test-fast --features metal,accelerate server::clock: 9 passed (new: fixed-instant formats, +09:00 zone moves 23:30 UTC to the next day, unsupported directive)
  • cargo test ... server::chat_template: 167 passed, 4 ignored (new: strftime_now("%Y-%m-%d") renders YYYY-MM-DD through the template path)
  • cargo deny check: advisories, bans, licenses, sources ok, no new exemptions
  • Not run: Windows build, workspace clippy and full tests.

Closes #3480

…d zone

jiff 1.x is released, and the chat-template strftime_now ignored its argument and always returned the UTC date as "%d %b %Y".

clock.rs gains strftime_in (jiff strtime formatter in a given zone) and strftime_now (host zone, UTC fallback); a malformed or unsupported directive returns the format unchanged and logs once at debug. chat_template.rs registers strftime_now on the real render path, and day_month_year and day_month_year_now are removed. jiff moves to 1 with tz-system, tzdb-zoneinfo and tzdb-bundle-platform (bundled database on Windows only). All existing clock assertions pass unchanged; the day_month_year test now calls strftime_in with "%d %b %Y" in UTC.

Closes #3480
@inureyes inureyes added type:dependency Dependency updates priority:low Low priority status:done Completed labels Nov 27, 2026
@inureyes
inureyes marked this pull request as ready for review November 27, 2026 05:15
@inureyes
inureyes merged commit 9d8949c into main Nov 27, 2026
1 check passed
@inureyes
inureyes deleted the update/issue-3480-jiff-1x-strftime-now branch November 27, 2026 05:16
inureyes added a commit that referenced this pull request Nov 28, 2026
## Summary

Adds the bilingual technical reports that were skipped when these three PRs merged on 2026-11-27:

- `TECHNICAL_REPORTS/3489-jiff-1x-strftime-now-20261127.{en,ko}.md` (#3489, jiff 1.0.3 and the `strftime_now` format and zone)
- `TECHNICAL_REPORTS/3490-vision-resize-frame-parity-20261127.{en,ko}.md` (#3490, resize and frame-sampling parity)
- `TECHNICAL_REPORTS/3491-qwen35-mtp-drafter-yarn-20261127.{en,ko}.md` (#3491, YaRN in the Qwen 3.5 MTP drafter)

Each report records the decisions the PR encodes (for example why ERNIE follows the checkpoint's `processing_ernie4_5_vl.py` rather than transformers or mlx-vlm, and why the drafter YaRN table is installed by the binary crate's loader) and what remains unverified.

## Test plan

Docs only. Remote CI was cancelled by maintainer decision.

- [x] Facts cross-checked against the merged diffs, PR bodies and the local validation output
@inureyes inureyes added this to the 0.9 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Low priority status:done Completed type:dependency Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Upgrade jiff to 1.x and honour strftime_now format and zone

1 participant