Skip to content

Calculate timezone from lat lng#62

Merged
hardiesoft merged 6 commits intomainfrom
calculate-timezone-from-lat-lng
Nov 3, 2025
Merged

Calculate timezone from lat lng#62
hardiesoft merged 6 commits intomainfrom
calculate-timezone-from-lat-lng

Conversation

@hardiesoft
Copy link
Member

No description provided.

@hardiesoft hardiesoft requested a review from CameronRP November 3, 2025 02:06
Copy link
Contributor

@CameronRP CameronRP left a comment

Choose a reason for hiding this comment

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

Looks good

src/main.rs Outdated
pub fn set_system_timezone(timezone: &str) -> Result<(), String> {
let local_tz = get_local_zone();
if local_tz.is_none() {
return Err("Error getting system time zone".to_string());
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to not just and try to set the timezone even if we can't get the current systems timezone?

Copy link
Member Author

Choose a reason for hiding this comment

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

That seems reasonable, have updated.

@hardiesoft hardiesoft merged commit 34285f1 into main Nov 3, 2025
2 checks passed
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