From ed6cfe307f9240bd83693c84550c74ca232c027f Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Wed, 4 Mar 2020 00:29:11 +0100
Subject: [PATCH] days must not be a const variable

---
 client/src/utils/datetime.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/src/utils/datetime.js b/client/src/utils/datetime.js
index c4bbea95..5f75f6de 100644
--- a/client/src/utils/datetime.js
+++ b/client/src/utils/datetime.js
@@ -31,7 +31,7 @@ export function ppt(t) {
   // "Pretty print" an amount of time given in seconds
   const dayInSeconds = 60 * 60 * 24;
   const hourInSeconds = 60 * 60;
-  const days = Math.floor(t / dayInSeconds);
+  let days = Math.floor(t / dayInSeconds);
   const hours = Math.floor((t % dayInSeconds) / hourInSeconds);
   const minutes = Math.floor((t % hourInSeconds) / 60);
   const seconds = Math.floor(t % 60);
-- 
2.44.0