Skip to content

chore: migrate chrono 0.4 → jiff 0.2.35 - #2387

Draft
jabbate19 wants to merge 1 commit into
mainfrom
2386-jiff-migration
Draft

chore: migrate chrono 0.4 → jiff 0.2.35#2387
jabbate19 wants to merge 1 commit into
mainfrom
2386-jiff-migration

Conversation

@jabbate19

Copy link
Copy Markdown
Collaborator

What type of PR is this?

/kind deprecation

What this PR does / why we need it:

Replace chrono with jiff 0.2.35 across implants workspace:

  • Cargo.toml: chrono 0.4.34 → jiff 0.2.35; libtime/libfile optional dep stdlib now uses dep:jiff
  • eldritch-libtime: now() uses Timestamp::now().as_second(); format_to_readable uses Timestamp::from_second + strftime; format_to_epoch uses Timestamp::strptime with %z/%:z fallback and civil::DateTime → TimeZone::UTC.to_timestamp
  • eldritch-libfile: list uses Timestamp::try_from(SystemTime).strftime; timestomp parse_time uses Timestamp::parse + civil::DateTime/Date strptime → TimeZone::UTC

Removes chrono from all Cargo.toml; verified cargo check --offline and 52 tests pass.

Which issue(s) this PR fixes:

Fixes #2386

Replace chrono with jiff 0.2.35 across implants workspace:
- Cargo.toml: chrono 0.4.34 → jiff 0.2.35; libtime/libfile optional dep stdlib now uses dep:jiff
- eldritch-libtime: now() uses Timestamp::now().as_second(); format_to_readable uses Timestamp::from_second + strftime; format_to_epoch uses Timestamp::strptime with %z/%:z fallback and civil::DateTime → TimeZone::UTC.to_timestamp
- eldritch-libfile: list uses Timestamp::try_from(SystemTime).strftime; timestomp parse_time uses Timestamp::parse + civil::DateTime/Date strptime → TimeZone::UTC

Removes chrono from all Cargo.toml; verified cargo check --offline and 52 tests pass.
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.

Migrate chrono -> jiff

1 participant