From 58641b2d3dc05cbb724e54135cc1ce7522178204 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 22 Nov 2025 15:49:15 +0000 Subject: [PATCH] Change date format to European (DD/MM/YYYY) and add explanation for sats - Updated date formatting in calculate.js to use 'en-GB' locale for European date format (DD/MM/YYYY) - Added explanatory text "(smallest unit of Bitcoin)" next to "sats" in the main heading --- calculate.js | 2 +- views/sats.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calculate.js b/calculate.js index ee478f3..da9e952 100644 --- a/calculate.js +++ b/calculate.js @@ -80,7 +80,7 @@ module.exports = { year = date.getFullYear(); rawsat = hist_entries[v]['sateur_rate'] percentage = (-100 * ((rawsat - today_sats) / rawsat)).toFixed(3) - final_list.push({ "year": date.toLocaleDateString(), "sats": rawsat.toLocaleString("en-US"), "percent": percentage }); + final_list.push({ "year": date.toLocaleDateString('en-GB'), "sats": rawsat.toLocaleString("en-US"), "percent": percentage }); } return final_list } catch (error) { diff --git a/views/sats.hbs b/views/sats.hbs index 85d36f5..91ab364 100644 --- a/views/sats.hbs +++ b/views/sats.hbs @@ -46,7 +46,7 @@
-

{{ Title }} sats

+

{{ Title }} sats (smallest unit of Bitcoin)