Mosque Prayer Time Zone Configuration & Daily/Monthly Display (/mosque-admin/prayer & /prayer-times)
How to select a mosque’s official JAKIM prayer time zone, trigger schedule synchronization, view daily and monthly prayer times, and distinguish external JAKIM e-Solat data from manual configuration.
1. Selecting & Updating the Mosque Prayer Time Zone (/mosque-admin/prayer)
- Sign in as a Mosque Administrator and open
/{lang}/mosque-admin/prayer. - Review the suggested official JAKIM zone for your mosque’s State and District.
- Select the appropriate zone in the Official Prayer Zone dropdown (
prayer_zone_id). The server validates that the selected zone belongs to the mosque’s state. - Click Save. The system updates
mosques.prayer_zone_idand immediately synchronizes today’s and the current month’s schedules from JAKIM e-Solat.
2. Displaying Daily & Monthly Prayer Times (/prayer-times & Microsite)
- Seven Daily Times: Displays Imsak, Subuh, Syuruk, Zohor, Asar, Maghrib, and Isyak along with Gregorian and Hijri dates.
- Live Next-Prayer Highlight & Countdown:
public/assets/js/prayer.jshighlights the upcoming prayer card and runs a live countdown timer inAsia/Kuala_Lumpurtime. - Monthly Schedule Table: Both
/prayer-timesand/mosque-admin/prayerdisplay the full calendar month table.
3. External JAKIM e-Solat Data vs. Manual Configuration
Important Distinction: All prayer timestamps (Imsak through Isyak) and Hijri dates are retrieved exclusively from the official external JAKIM e-Solat API (https://www.e-solat.gov.my/). Mosque and platform administrators only configure the Official Zone Assignment (prayer_zone_id); manual entry or manual overriding of individual prayer times is intentionally prohibited.
Input Fields & Options Reference
| Field / Action | Screen | Description |
|---|---|---|
prayer_zone_id | /mosque-admin/prayer, /mosque-admin/profile | Verified JAKIM zone matching the mosque’s state. |
action=sync | /mosque-admin/prayer | Triggers an immediate daily and monthly sync for the mosque’s assigned zone. |
Common Errors & Troubleshooting
If saving a zone fails with a state mismatch error, ensure the mosque’s State in /mosque-admin/profile matches the state of the chosen JAKIM zone.