diff --git a/Cargo.toml b/Cargo.toml index 5c6033a..b52cf65 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ruc" -version = "7.8.2" +version = "7.8.3" authors = ["hui.fan@mail.ru"] edition = "2021" description = "Rust Util Collections" diff --git a/src/common.rs b/src/common.rs index 2f2bb91..3c014c1 100644 --- a/src/common.rs +++ b/src/common.rs @@ -131,7 +131,7 @@ macro_rules! ts { /// generate a 'formated DateTime' #[inline(always)] pub fn gen_datetime(ts: i64) -> String { - let format = time::format_description::parse("[year]-[month]-[day] [hour]:[minute]:[second] [offset_hour sign:mandatory]:[offset_minute]:[offset_second]").unwrap(); + let format = time::format_description::parse("[year]-[month]-[day] [hour]:[minute]:[second] [offset_hour sign:mandatory]").unwrap(); time::OffsetDateTime::from_unix_timestamp(ts) .unwrap() .to_offset(time::UtcOffset::from_hms(8, 0, 0).unwrap())