ticker-serve: add timezone info
This commit is contained in:
parent
b618d1dd05
commit
950b190f77
|
@ -9,7 +9,7 @@ use mime::TEXT_HTML;
|
|||
|
||||
use typed_html::{html, text, dom::DOMTree, types::{Class, SpacedSet}};
|
||||
use diesel::prelude::*;
|
||||
use chrono::{offset::Local, Datelike, Duration, NaiveDate};
|
||||
use chrono::{offset::Local, Datelike, Duration, NaiveDate, TimeZone};
|
||||
|
||||
use libticker::{
|
||||
schema::{self, events::dsl::events},
|
||||
|
@ -110,7 +110,7 @@ fn render_index(app_state: &AppState) -> String {
|
|||
html!(<span class="recurrence">" "</span>)
|
||||
} }
|
||||
<span class="dtstart" itemprop="startDate"
|
||||
title=( format!("{}", e.dtstart.format("%Y-%m-%dT%H:%M:%S")) )>
|
||||
title=( format!("{}", Local.from_local_datetime(&e.dtstart).unwrap().format("%Y-%m-%dT%H:%M:%S%:z")) )>
|
||||
{ text!("{}", &e.dtstart.format("%H:%M")) }
|
||||
</span>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue