diff --git a/Cargo.toml b/Cargo.toml index 0e1a178..27a8830 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "agit" -version = "0.13.0" +version = "0.13.1" edition = "2021" description = "AI-native Git tool - pure Rust implementation" license = "Apache-2.0" diff --git a/src/core/repo.rs b/src/core/repo.rs index e4d1957..b05b439 100644 --- a/src/core/repo.rs +++ b/src/core/repo.rs @@ -60,7 +60,7 @@ fn local_tz_offset() -> String { // 取当前 UTC 秒数,计算它对应的小时数,再用简易方法估算偏移 #[cfg(unix)] { - if let Ok(offset) = unix_tz_offset() { + if let Some(offset) = unix_tz_offset() { return offset; } }