Fix: tambah timeZone Asia/Jakarta di setTopbarDate

This commit is contained in:
mwpn
2025-12-19 05:45:58 +07:00
parent 8f3611b9e8
commit de79ba0af2

View File

@@ -146,11 +146,13 @@ function setTopbarDate() {
const el = document.getElementById('topbar-date'); const el = document.getElementById('topbar-date');
if (!el) return; if (!el) return;
const d = new Date(); const d = new Date();
// Gunakan timezone Asia/Jakarta untuk konsistensi
el.textContent = d.toLocaleDateString('id-ID', { el.textContent = d.toLocaleDateString('id-ID', {
weekday: 'short', weekday: 'short',
year: 'numeric', year: 'numeric',
month: 'short', month: 'short',
day: '2-digit' day: '2-digit',
timeZone: 'Asia/Jakarta'
}); });
} }