Skip to content

Commit 19c9706

Browse files
authored
Merge pull request #328 from AdExNetwork/no-with-milliseconds-for-unit
No serde with milliseconds for ad unit
2 parents 2b48692 + 398add2 commit 19c9706

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

primitives/src/ad_unit.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use chrono::serde::{ts_milliseconds, ts_milliseconds_option};
21
use chrono::{DateTime, Utc};
32
use serde::{Deserialize, Serialize};
43

@@ -36,7 +35,6 @@ pub struct AdUnit {
3635
/// user address from the session
3736
pub owner: ValidatorId,
3837
/// number, UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes
39-
#[serde(with = "ts_milliseconds")]
4038
pub created: DateTime<Utc>,
4139
/// the name of the unit used in platform UI
4240
pub title: Option<String>,
@@ -46,6 +44,5 @@ pub struct AdUnit {
4644
#[serde(default)]
4745
pub archived: bool,
4846
/// UTC timestamp in milliseconds, changed every time modifiable property is changed
49-
#[serde(default, with = "ts_milliseconds_option")]
5047
pub modified: Option<DateTime<Utc>>,
5148
}

0 commit comments

Comments
 (0)