Fix: tambah timeZone Asia/Jakarta di setTopbarDate
This commit is contained in:
@@ -146,11 +146,13 @@ function setTopbarDate() {
|
||||
const el = document.getElementById('topbar-date');
|
||||
if (!el) return;
|
||||
const d = new Date();
|
||||
// Gunakan timezone Asia/Jakarta untuk konsistensi
|
||||
el.textContent = d.toLocaleDateString('id-ID', {
|
||||
weekday: 'short',
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
day: '2-digit'
|
||||
day: '2-digit',
|
||||
timeZone: 'Asia/Jakarta'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user