Fix #54
This commit is contained in:
parent
23ae1fafc1
commit
ca4ed6013c
|
@ -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"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user