Skip to content

Commit

Permalink
fix deprecated function
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Sep 18, 2023
1 parent a4ea54f commit 13fa64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/src/types/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl Timestamp {
}

pub fn get_timestamp_nanos(&self) -> i64 {
self.0.timestamp_nanos()
self.0.timestamp_nanos_opt().unwrap()
}

pub fn with_micros(timestamp_micros: i64) -> Result<Self> {
Expand Down

0 comments on commit 13fa64f

Please sign in to comment.