mirror of
https://github.com/stoatchat/iso8601-timestamp.git
synced 2026-07-01 21:45:22 -04:00
Fix test
This commit is contained in:
+5
-1
@@ -7,7 +7,11 @@ use rkyv_08::{from_bytes, rancor::Error, to_bytes};
|
||||
#[test]
|
||||
fn test_rkyv() {
|
||||
#[cfg(not(feature = "std"))]
|
||||
let ts = Timestamp::from(datetime!(2024-09-01 12:32 PM).replace_millisecond(123).unwrap());
|
||||
let ts = Timestamp::from(
|
||||
iso8601_timestamp::datetime!(2024-09-01 12:32 PM)
|
||||
.replace_millisecond(123)
|
||||
.unwrap(),
|
||||
);
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
let ts = Timestamp::from(Timestamp::now_utc().replace_millisecond(123).unwrap());
|
||||
|
||||
Reference in New Issue
Block a user