Skip to content

Commit

Permalink
fix UT deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxa21 committed Jun 17, 2024
1 parent f939526 commit 7f3ed16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/src/types/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -882,10 +882,10 @@ mod tests {
Timestamp::from_str("2022-08-03 10:34:02").unwrap()
);
let ts = Timestamp::from_str("0001-11-15 07:35:40.999999").unwrap();
assert_eq!(ts.0.timestamp_micros(), -62108094259000001);
assert_eq!(ts.0.and_utc().timestamp_micros(), -62108094259000001);

let ts = Timestamp::from_str("1969-12-31 23:59:59.999999").unwrap();
assert_eq!(ts.0.timestamp_micros(), -1);
assert_eq!(ts.0.and_utc().timestamp_micros(), -1);

// invalid datetime
Date::from_str("1999-01-08AA").unwrap_err();
Expand Down

0 comments on commit 7f3ed16

Please sign in to comment.