mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-26 00:52:25 +00:00
fixup date annotation
This commit is contained in:
1 parent
5ccc610a59
commit
03eea4015d
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -47,7 +47,7 @@ pub async fn graph(
|
||||
data.push_str("Date,Healthy,Dead\n");
|
||||
|
||||
for entry in healthy_data {
|
||||
let time = Utc.timestamp_opt(entry.time,0).unwrap();
|
||||
let time = Utc.timestamp_opt(entry.time,0).unwrap().format("%Y-%m-%dT%H:%M:%SZ");
|
||||
writeln!(&mut data, "{},{},{}",time,entry.alive,entry.dead)
|
||||
.map_err(|e|ServerError::CSV(e.to_string()))?;
|
||||
}
|
||||
|
||||
@@ -31,13 +31,13 @@ async function loadGraph() {
|
||||
g.ready(function() {
|
||||
g.setAnnotations([
|
||||
{
|
||||
series: "Temperature",
|
||||
series: "Healthy",
|
||||
x: "2023-05-18",
|
||||
shortText: "G",
|
||||
text: "First API Change"
|
||||
},
|
||||
{
|
||||
series: "Temperature",
|
||||
series: "Healthy",
|
||||
x: "2024-01-24",
|
||||
shortText: "D",
|
||||
text: "API Shutdown"
|
||||
|
||||
Reference in new issue
Block a user