Skip to content

Commit a3b5a19

Browse files
committed
removed with from created field
1 parent 45e742f commit a3b5a19

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

primitives/src/ad_slot.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct AdSlot {
4242
/// User address from the session
4343
pub owner: ValidatorId,
4444
/// UTC timestamp in milliseconds, used as nonce for escaping duplicated spec ipfs hashes
45-
#[serde(deserialize_with = "from_timestamp")]
45+
// #[serde(deserialize_with = "from_timestamp")]
4646
pub created: DateTime<Utc>,
4747
/// the name of the unit used in platform UI
4848
#[serde(default)]
@@ -60,13 +60,13 @@ pub struct AdSlot {
6060
pub modified: Option<DateTime<Utc>>,
6161
}
6262

63-
fn from_timestamp(time: &String) -> DateTime<Utc> {
64-
DateTime::parse_from_str(time, "%Y-%m-%dT%H:%M:%S.%f").unwrap()
65-
}
63+
// fn from_timestamp(time: &String) -> DateTime<Utc> {
64+
// DateTime::parse_from_str(time, "%Y-%m-%dT%H:%M:%S.%f").unwrap()
65+
// }
6666

67-
fn from_timestamp_option(time: &String) -> Option<DateTime<Utc>> {
68-
match DateTime::parse_from_str(time, "%Y-%m-%dT%H:%M:%S.%f") {
69-
Ok(t) => Some(t),
70-
Err(_) => None,
71-
}
72-
}
67+
// fn from_timestamp_option(time: &String) -> Option<DateTime<Utc>> {
68+
// match DateTime::parse_from_str(time, "%Y-%m-%dT%H:%M:%S.%f") {
69+
// Ok(t) => Some(t),
70+
// Err(_) => None,
71+
// }
72+
// }

0 commit comments

Comments
 (0)