Receipt Timer: Changed date format

This commit is contained in:
2026-01-17 14:00:57 +01:00
parent fbdcef7bca
commit 2e4147abec

View File

@@ -10,9 +10,14 @@ module.exports = {
async tick(client, timer) {
try {
// 1. Send the message
const currentDate = new Date().toLocaleDateString();
const currentDate = new Date().toLocaleDateString('en-GB', {
weekday: 'long',
day: '2-digit',
month: '2-digit',
year: 'numeric'
});
const channel = await client.channels.fetch(timer.data.channelId);
if (channel) await channel.send(`Current date is ${currentDate}`);
if (channel) await channel.send(`Today is ${currentDate}`);
} catch (error) {
console.error('[TIMER] Error:', error);