Skip to content

Commit 0d45045

Browse files
committed
domain - Channel - validUntil change to seconds timestamp
1 parent 313be42 commit 0d45045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry/src/domain/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::convert::TryFrom;
22

33
use chrono::{DateTime, Utc};
4-
use chrono::serde::ts_milliseconds;
4+
use chrono::serde::{ts_milliseconds, ts_seconds};
55
use serde::{Deserialize, Serialize};
66
use serde_hex::{SerHex, StrictPfx};
77

@@ -57,7 +57,7 @@ pub struct Channel {
5757
pub creator: String,
5858
pub deposit_asset: Asset,
5959
pub deposit_amount: BigNum,
60-
#[serde(with = "ts_milliseconds")]
60+
#[serde(with = "ts_seconds")]
6161
pub valid_until: DateTime<Utc>,
6262
pub spec: ChannelSpec,
6363
}

0 commit comments

Comments
 (0)