aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-16 22:18:58 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-16 22:18:58 +0100
commitea68256ae1e15fdcb675dac1ec8e3717a84ed36e (patch)
tree4777021bb67bb4926fd980a318443c76323ede85 /src
parent81a61c28619ef9f32e79e5698bc4162ca1ceb82d (diff)
downloadcats-radio-node-ea68256ae1e15fdcb675dac1ec8e3717a84ed36e.tar.gz
cats-radio-node-ea68256ae1e15fdcb675dac1ec8e3717a84ed36e.tar.bz2
cats-radio-node-ea68256ae1e15fdcb675dac1ec8e3717a84ed36e.zip
Improve CSS
Diffstat (limited to 'src')
-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,
}
}