From ca4ed6013c1801798c728316ce1d6210e506e3b1 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Mon, 30 Sep 2019 22:51:18 +0200 Subject: [PATCH] Fix #54 --- src/extension/date.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/date.rs b/src/extension/date.rs index ea64bd8..6c81924 100644 --- a/src/extension/date.rs +++ b/src/extension/date.rs @@ -18,7 +18,7 @@ */ use serde_yaml::{Mapping, Value}; -use chrono::{DateTime, Utc}; +use chrono::{DateTime, Local}; pub struct DateExtension {} @@ -34,7 +34,7 @@ impl super::Extension for DateExtension { } fn calculate(&self, params: &Mapping) -> Option { - let now: DateTime = Utc::now(); + let now: DateTime = Local::now(); let format = params.get(&Value::from("format"));