better date serilization (#5207)

This commit is contained in:
Simon Wicky
2024-12-04 11:11:51 +01:00
committed by GitHub
parent e06d442e95
commit f3bf5d080b
3 changed files with 3 additions and 0 deletions
Generated
+1
View File
@@ -6078,6 +6078,7 @@ dependencies = [
"nym-network-defaults",
"nym-node-requests",
"nym-node-status-client",
"nym-serde-helpers",
"nym-statistics-common",
"nym-task",
"nym-validator-client",
@@ -26,6 +26,7 @@ nym-node-status-client = { path = "../nym-node-status-client" }
nym-crypto = { path = "../../common/crypto", features = ["asymmetric", "serde"] }
nym-explorer-client = { path = "../../explorer-api/explorer-client" }
nym-network-defaults = { path = "../../common/network-defaults" }
nym-serde-helpers = { path = "../../common/serde-helpers"}
nym-statistics-common = { path = "../../common/statistics"}
nym-validator-client = { path = "../../common/client-libs/validator-client" }
nym-task = { path = "../../common/task" }
@@ -79,6 +79,7 @@ pub(crate) struct SummaryHistory {
pub struct SessionStats {
pub gateway_identity_key: String,
pub node_id: u32,
#[serde(with = "nym_serde_helpers::date")]
pub day: time::Date,
pub unique_active_clients: i64,
pub session_started: i64,