this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: display time and expiry in `status show` subcommand

+20
+20
src/record.rs
··· 301 301 { 302 302 println!("client: {}", client); 303 303 } 304 + 305 + if full { 306 + if raw { 307 + println!("time: {}", self.time.format("%Y-%m-%d %H:%M:%S %:z")); 308 + } else { 309 + let local_dt = self.time.with_timezone(&chrono::Local); 310 + println!("time: {}", local_dt.format("%Y-%m-%d %H:%M:%S")); 311 + } 312 + } 313 + 314 + if let Some(expiry) = &self.expiry 315 + && full 316 + { 317 + if raw { 318 + println!("expiry: {}", expiry.format("%Y-%m-%d %H:%M:%S %:z")); 319 + } else { 320 + let local_dt = expiry.with_timezone(&chrono::Local); 321 + println!("expiry: {}", local_dt.format("%Y-%m-%d %H:%M:%S")); 322 + } 323 + } 304 324 } 305 325 }