diff --git a/src/generator/util/templates.rs b/src/generator/util/templates.rs index 8f065b5..082dca9 100644 --- a/src/generator/util/templates.rs +++ b/src/generator/util/templates.rs @@ -1,5 +1,5 @@ use crate::activitypub::DOMAIN; -use chrono::{DateTime, Utc}; +use chrono::{DateTime, Local}; use once_cell::sync::Lazy; use std::time::SystemTime; @@ -10,7 +10,7 @@ static CB: Lazy = Lazy::new(|| { .as_secs() }); -static GENERATED_AT: Lazy> = Lazy::new(|| Utc::now()); +static GENERATED_AT: Lazy> = Lazy::new(|| Local::now()); pub trait TemplateCommon { fn domain() -> String { @@ -32,7 +32,7 @@ pub trait TemplateCommon { ) } - fn generated_at() -> &'static DateTime { + fn generated_at() -> &'static DateTime { &*GENERATED_AT } }