File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use crate::database::{
33} ;
44use askama:: Template ;
55use axum:: response:: { Html , IntoResponse , Response } ;
6+ use chrono:: { DateTime , Local , Utc } ;
67use http:: StatusCode ;
78
89/// Build status to display on the queue page.
@@ -69,6 +70,12 @@ pub struct QueueTemplate {
6970 pub oauth_client_id : Option < String > ,
7071}
7172
73+ impl QueueTemplate {
74+ fn to_local_time ( & self , time : DateTime < Utc > ) -> DateTime < Local > {
75+ time. into ( )
76+ }
77+ }
78+
7279#[ derive( Template ) ]
7380#[ template( path = "not_found.html" ) ]
7481pub struct NotFoundTemplate { }
Original file line number Diff line number Diff line change 156156 {% let pending_build = crate::templates::get_pending_build(pr) %}
157157 < td class ="status " data-status ="{{ crate::templates::status_text(pr) }} "
158158 {% if let Some(build) = pending_build %}
159- title ="{{ build.created_at.format( "%d.%m.%Y %H:%M:%S ") }} UTC "
159+ title ="Started at {{ to_local_time(* build.created_at) .format( "%d.%m.%Y %H:%M:%S ") }}"
160160 data-created-at="{{ build.created_at.timestamp_millis() }} "
161161 {% endif %} >
162162
You can’t perform that action at this time.
0 commit comments