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' }));