Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

@jqnatividad jqnatividad requested a review from Copilot October 13, 2025 03:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the timezone detection functionality by replacing the localzone crate with the iana-time-zone crate for getting the local timezone. This change affects the datefmt command's timezone handling logic.

  • Replaced localzone::get_local_zone() calls with iana_time_zone::get_timezone()
  • Updated error handling pattern from Option to Result
  • Removed dependency on localzone crate and added iana-time-zone crate

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
src/cmd/datefmt.rs Updated three timezone detection calls to use the new iana-time-zone library with Result-based error handling
Cargo.toml Removed localzone dependency and added iana-time-zone dependency

@jqnatividad jqnatividad merged commit 3018a5d into master Oct 13, 2025
16 checks passed
@jqnatividad jqnatividad deleted the replace-localzone-with-iana_time_zone branch October 13, 2025 03:43
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