diff --git a/lib/src/fnc/time.rs b/lib/src/fnc/time.rs index 4a0a34e7..ad3cf2f2 100644 --- a/lib/src/fnc/time.rs +++ b/lib/src/fnc/time.rs @@ -89,9 +89,9 @@ pub fn mins(_: &Context, mut args: Vec) -> Result { pub fn month(_: &Context, mut args: Vec) -> Result { match args.len() { - 0 => Ok(Utc::now().day().into()), + 0 => Ok(Utc::now().month().into()), _ => match args.remove(0) { - Value::Datetime(v) => Ok(v.day().into()), + Value::Datetime(v) => Ok(v.month().into()), _ => Ok(Value::None), }, }