Skip to content

Commit

Permalink
Replace deprecated function call.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwippermann committed Oct 15, 2023
1 parent 9a02465 commit c2ed094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub fn current_timestamp() -> DateTime<Utc> {

#[cfg(target_arch = "wasm32")]
fn current_timestamp_internal() -> DateTime<Utc> {
Utc.timestamp(0, 0)
Utc.timestamp_opt(0, 0).unwrap()
}

#[cfg(not(target_arch = "wasm32"))]
Expand Down

0 comments on commit c2ed094

Please sign in to comment.