switch to datetime (instead of string) + show proper timezone
This commit is contained in:
parent
ff30d1894a
commit
ff36557a60
@ -12,7 +12,7 @@ pub struct Model {
|
|||||||
pub user_id: i32,
|
pub user_id: i32,
|
||||||
pub cox_id: Option<i32>,
|
pub cox_id: Option<i32>,
|
||||||
pub begin: Option<String>,
|
pub begin: Option<String>,
|
||||||
pub created: String,
|
pub created: chrono::DateTime<chrono::Utc>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
{% for r in rowers %}
|
{% for r in rowers %}
|
||||||
<li>
|
<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 %}
|
{% if r.user.name == user.name %}
|
||||||
<form method="post" action="/register">
|
<form method="post" action="/register">
|
||||||
<input type="hidden" name="_method" value="delete" />
|
<input type="hidden" name="_method" value="delete" />
|
||||||
|
Loading…
Reference in New Issue
Block a user