diff options
Diffstat (limited to 'test_utils/src/lib.rs')
| -rw-r--r-- | test_utils/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test_utils/src/lib.rs b/test_utils/src/lib.rs index 22bdf90..bdfc550 100644 --- a/test_utils/src/lib.rs +++ b/test_utils/src/lib.rs | |||
| @@ -135,7 +135,7 @@ pub fn make_event_old_or_change_user( | |||
| 135 | .build(keys.public_key()); | 135 | .build(keys.public_key()); |
| 136 | 136 | ||
| 137 | unsigned.created_at = | 137 | unsigned.created_at = |
| 138 | nostr::types::Timestamp::from(nostr::types::Timestamp::now().as_u64() - how_old_in_secs); | 138 | nostr::types::Timestamp::from(nostr::types::Timestamp::now().as_secs() - how_old_in_secs); |
| 139 | unsigned.id = Some(nostr::EventId::new( | 139 | unsigned.id = Some(nostr::EventId::new( |
| 140 | &keys.public_key(), | 140 | &keys.public_key(), |
| 141 | &unsigned.created_at, | 141 | &unsigned.created_at, |