This commit is contained in:
novacrazy
2025-10-07 13:35:17 -05:00
parent 86b75f272f
commit b3d19833f5
+5 -1
View File
@@ -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());