Ensure random times are generated correctly
This commit is contained in:
parent
8e283ecaeb
commit
4275f93c57
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,8 @@ pub fn time(_: &Runtime, mut args: Vec<Value>) -> Result<Value, Error> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
0 => {
|
0 => {
|
||||||
let i = rand::random::<i64>();
|
let i = rand::random::<i32>();
|
||||||
Ok(Datetime::from(i).into())
|
Ok(Datetime::from(i as i64).into())
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue