fix: update timezone to Asia/Jakarta and adjust date formatting in attendance component
This commit is contained in:
parent
38b4a31c6b
commit
ab3ec86931
@ -65,7 +65,7 @@
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => 'UTC',
|
||||
'timezone' => 'Asia/Jakarta',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@ -275,6 +275,8 @@ export default function AttendanceIndex({
|
||||
const hasCheckedIn = !!todayAttendance;
|
||||
const hasCheckedOut = !!todayAttendance?.check_out_at;
|
||||
|
||||
const today = new Date();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head title="Presensi" />
|
||||
@ -445,14 +447,14 @@ export default function AttendanceIndex({
|
||||
<div className="flex flex-col items-center overflow-hidden rounded-lg ring-1 ring-border">
|
||||
<div className="bg-muted px-3 py-0.5">
|
||||
<span className="text-xs font-semibold text-muted-foreground uppercase">
|
||||
{format(viewDate, 'MMM', {
|
||||
{format(today, 'MMM', {
|
||||
locale: id,
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
<div className="px-3 py-1">
|
||||
<span className="text-lg font-bold text-primary">
|
||||
{format(viewDate, 'dd')}
|
||||
{format(today, 'dd')}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user