Debug User Shift Issue

1. User Information

User: Admin HRD (ID: 1)
Default Shift ID:
Default Shift: ( - )

2. Scheduled Shift for Today (2026-01-27)

✅ No scheduled shift found. Default shift should be used.

3. getTodayShift() Method Result

❌ getTodayShift() returned null!

5. Recent Scheduled Shifts (Last 7 days)

No recent scheduled shifts found.

6. Summary & Recommendations

How Shifts Work:
1. Scheduled Shifts (jadwal_shift table) have HIGHEST priority
2. Default Shifts (users.default_shift_id) are used only when no scheduled shift exists

Current Issue:
• No scheduled shift found, user should be using default shift
• If still showing wrong shift, check browser cache or session data