diff --git a/src/packages/time_basic.rs b/src/packages/time_basic.rs index 202e7115..0b3cad13 100644 --- a/src/packages/time_basic.rs +++ b/src/packages/time_basic.rs @@ -99,7 +99,7 @@ fn time_diff(ts1: Instant, ts2: Instant) -> Result> .into(); } - Ok(-(seconds as INT).into()) + Ok(Dynamic::from(-(seconds as INT))) } else { let seconds = (ts1 - ts2).as_secs();