From b00ab5c4e434a2e497d6cde8606c3dd2496a9776 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 5 Dec 2021 22:16:10 -0700 Subject: correctly format actual ETA --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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?"), } -- cgit v1.2.3