app: Truncate the user creation date to the day

This commit is contained in:
Valentin Tolmer 2021-10-11 19:20:39 +02:00 committed by nitnelave
parent 9a68563c0b
commit c4c0bb8b8e
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ impl Component for UserDetailsForm {
{"Creation date: "}
</label>
<div class="col-sm-10">
<span id="creationDate" class="form-constrol-static">{&self.props.user.creation_date.with_timezone(&chrono::Local)}</span>
<span id="creationDate" class="form-constrol-static">{&self.props.user.creation_date.date().naive_local()}</span>
</div>
</div>
<div class="form-group row">

View File

@ -146,7 +146,7 @@ impl UserTable {
<td>{&user.display_name}</td>
<td>{&user.first_name}</td>
<td>{&user.last_name}</td>
<td>{&user.creation_date.with_timezone(&chrono::Local)}</td>
<td>{&user.creation_date.date().naive_local()}</td>
<td>
<DeleteUser
username=user.id.clone()