Skip to content

Commit

Permalink
chore: Handle deprecation of seconds()
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Vaughan Jr committed Mar 26, 2024
1 parent 05bd2fe commit ac90b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/execution/kernels/temporal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ where
T: Datelike + Timelike + std::ops::Sub<Duration, Output = T> + Copy,
{
Some(dt)
.map(|d| d - Duration::seconds(60 * 60 * 24 * d.weekday() as i64))
.map(|d| d - Duration::try_seconds(60 * 60 * 24 * d.weekday() as i64).unwrap())
.and_then(|d| d.with_nanosecond(0))
.and_then(|d| d.with_second(0))
.and_then(|d| d.with_minute(0))
Expand Down

0 comments on commit ac90b86

Please sign in to comment.