File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ pub struct AdSlot {
42
42
/// User address from the session
43
43
pub owner : ValidatorId ,
44
44
/// 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")]
46
46
pub created : DateTime < Utc > ,
47
47
/// the name of the unit used in platform UI
48
48
#[ serde( default ) ]
@@ -60,13 +60,13 @@ pub struct AdSlot {
60
60
pub modified : Option < DateTime < Utc > > ,
61
61
}
62
62
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
+ // }
66
66
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
+ // }
You can’t perform that action at this time.
0 commit comments