From d04746a5d85b6c2460f198e54e4f65412e2c7007 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 20 Aug 2025 23:08:51 -0600 Subject: [PATCH] Fix time? --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ee4505b..d83245e 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ app.get('/time.php', (req, res) => { try { const date = new Date(); const options = { timeZone: tz, hour12: false }; - const pad = n => n.toString().padStart(2, '0'); + const pad = n => n.toString().padStart(2, ' '); const year = date.toLocaleString('en-GB', { ...options, year: 'numeric' }); const month = pad(date.toLocaleString('en-GB', { ...options, month: '2-digit' })); const day = pad(date.toLocaleString('en-GB', { ...options, day: '2-digit' }));