From c4c0bb8b8e87ba447f6cc1057cc50ee65fa7916c Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Mon, 11 Oct 2021 19:20:39 +0200 Subject: [PATCH] app: Truncate the user creation date to the day --- app/src/components/user_details_form.rs | 2 +- app/src/components/user_table.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/user_details_form.rs b/app/src/components/user_details_form.rs index d07467e..1ccaa7d 100644 --- a/app/src/components/user_details_form.rs +++ b/app/src/components/user_details_form.rs @@ -185,7 +185,7 @@ impl Component for UserDetailsForm { {"Creation date: "}
- {&self.props.user.creation_date.with_timezone(&chrono::Local)} + {&self.props.user.creation_date.date().naive_local()}
diff --git a/app/src/components/user_table.rs b/app/src/components/user_table.rs index e896a5e..dbc3c3d 100644 --- a/app/src/components/user_table.rs +++ b/app/src/components/user_table.rs @@ -146,7 +146,7 @@ impl UserTable { {&user.display_name} {&user.first_name} {&user.last_name} - {&user.creation_date.with_timezone(&chrono::Local)} + {&user.creation_date.date().naive_local()}