diff --git a/src/methods/filters.rs b/src/methods/filters.rs index 273bb7e..b460102 100644 --- a/src/methods/filters.rs +++ b/src/methods/filters.rs @@ -4,8 +4,9 @@ use std::borrow::Borrow; use time::format_description::well_known::Rfc3339; -pub fn format_time(s: time::OffsetDateTime) -> Result { - s.format(&Rfc3339) +pub fn format_time(s: impl Borrow) -> Result { + (*s.borrow()) + .format(&Rfc3339) .map_err(Box::from) .map_err(askama::Error::Custom) } diff --git a/templates/index.html b/templates/index.html index e449aa0..8dc7bc5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,7 +44,7 @@ - diff --git a/templates/repo/macros/refs.html b/templates/repo/macros/refs.html index e802355..51128da 100644 --- a/templates/repo/macros/refs.html +++ b/templates/repo/macros/refs.html @@ -18,7 +18,7 @@ {{ commit.get().author.name }} -