switch to datetime (instead of string) + show proper timezone

This commit is contained in:
philipp 2023-03-04 13:36:36 +01:00
parent ff30d1894a
commit ff36557a60
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ pub struct Model {
pub user_id: i32,
pub cox_id: Option<i32>,
pub begin: Option<String>,
pub created: String,
pub created: chrono::DateTime<chrono::Utc>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]

View File

@ -25,7 +25,7 @@
<ol>
{% for r in rowers %}
<li>
{{ r.user.name }} (angemeldet seit {{ r.trip.created }})
{{ r.user.name }} (angemeldet seit {{ r.trip.created | date(format="%d.%m. %H:%M", timezone="Europe/Vienna") }})
{% if r.user.name == user.name %}
<form method="post" action="/register">
<input type="hidden" name="_method" value="delete" />