Skip to content

Commit

Permalink
Fix cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Sep 18, 2023
1 parent 45afd92 commit 90b0883
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/bws/src/render.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bitwarden::secrets_manager::{projects::ProjectResponse, secrets::SecretResponse};
use chrono::DateTime;
use chrono::{DateTime, Utc};
use clap::ValueEnum;
use comfy_table::Table;
use serde::Serialize;
Expand Down Expand Up @@ -105,11 +105,8 @@ impl<T: TableSerialize<N>, const N: usize> TableSerialize<N> for Vec<T> {
}
}

fn format_date(date: &str) -> String {
DateTime::parse_from_rfc3339(date)
.unwrap()
.format("%Y-%m-%d %H:%M:%S")
.to_string()
fn format_date(date: &DateTime<Utc>) -> String {
date.format("%Y-%m-%d %H:%M:%S").to_string()
}

impl TableSerialize<3> for ProjectResponse {
Expand Down

0 comments on commit 90b0883

Please sign in to comment.