Fix: tambah timeZone Asia/Jakarta di setTopbarDate
This commit is contained in:
@@ -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'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user