aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui.rs b/src/ui.rs
index 82c8b5c..afc6398 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -109,12 +109,15 @@ async fn dashboard(State(state): State<SharedState>) -> DashboardTemplate<'stati
})
.collect();
+ let node_startup_time = format!("{} UTC",
+ node_startup_time.format("%Y-%m-%d %H:%M:%S"));
+
DashboardTemplate {
title: "Dashboard",
conf,
page: ActivePage::Dashboard,
num_received_frames : db.get_num_received_frames(),
- node_startup_time : node_startup_time.format("%Y-%m-%d %H:%M:%S").to_string(),
+ node_startup_time,
packets,
}
}