This commit is contained in:
Federico Terzi 2019-09-30 22:51:18 +02:00
parent 23ae1fafc1
commit ca4ed6013c

View File

@ -18,7 +18,7 @@
*/ */
use serde_yaml::{Mapping, Value}; use serde_yaml::{Mapping, Value};
use chrono::{DateTime, Utc}; use chrono::{DateTime, Local};
pub struct DateExtension {} pub struct DateExtension {}
@ -34,7 +34,7 @@ impl super::Extension for DateExtension {
} }
fn calculate(&self, params: &Mapping) -> Option<String> { fn calculate(&self, params: &Mapping) -> Option<String> {
let now: DateTime<Utc> = Utc::now(); let now: DateTime<Local> = Local::now();
let format = params.get(&Value::from("format")); let format = params.get(&Value::from("format"));