aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-12-05 22:16:10 -0700
committerMelody Horn <melody@boringcactus.com>2021-12-05 22:16:10 -0700
commitb00ab5c4e434a2e497d6cde8606c3dd2496a9776 (patch)
tree3270f65e9d6c57de7db00b0a8210df86cf0da4ba
parent62c60723a77e9d3b984f94924194b1a0ba753916 (diff)
downloadqueue-go-brrr-b00ab5c4e434a2e497d6cde8606c3dd2496a9776.tar.gz
queue-go-brrr-b00ab5c4e434a2e497d6cde8606c3dd2496a9776.zip
correctly format actual ETA
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 572b533..d71b03d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -129,7 +129,8 @@ impl Status {
let format = js_sys::Intl::DateTimeFormat::new(&empty_array, &options);
let format = format.format();
let locale_string = format.call1(&JsValue::UNDEFINED, &date).unwrap();
- locale_string.as_string().unwrap()
+ let locale_string = locale_string.as_string().unwrap();
+ format!("queue go brrr - ETA {}", &locale_string)
}
Status::ConnectionError => format!("queue go brrr - connection error?"),
}