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 => {
|
||||
let i = rand::random::<i64>();
|
||||
Ok(Datetime::from(i).into())
|
||||
let i = rand::random::<i32>();
|
||||
Ok(Datetime::from(i as i64).into())
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue