revoltchat / backend

Monorepo for Revolt backend services.
https://developers.revolt.chat/api/
Other
1.26k stars 143 forks source link

chore: bump dependency on iso8601_timestamp #222

Open insertish opened 1 year ago

novacrazy commented 1 year ago

Reposting this here for you:

Before:

// ...
expiry: Timestamp::from_unix_timestamp_ms(
    chrono::Utc::now()
        .checked_add_signed(Duration::seconds(expiry.expire_verification))
        .expect("failed to checked_add_signed")
        .timestamp_millis(),
),

After:

use iso8601_timestamp::{Timestamp, Duration};
// ...
expiry: Timestamp::now_utc()
    .checked_add(Duration::seconds(expiry.expire_verification))
    .expect("failed to checked_add"),