afzafri / Waktu-Solat-API

PHP API for fetching prayer time from JAKIM e-Solat website
MIT License
36 stars 16 forks source link

Waktu Solat Terengganu undefined #2

Closed Habibah28 closed 5 years ago

Habibah28 commented 6 years ago

Waktu solat untuk Terengganu dapat undefined untuk setiap zone. Lain-lain negeri tiada masalah.

Contoh: .../api.php?zon=TRG01

Result: {"kod_zon":"TRG01","nama_zon":"Kuala Terengganu, Marang","tarikh_masa":"30-04-2018 17:24:04"}

image

Contoh: .../api.php?zon=SGR03

Result: {"waktu_imsak":"05:35 a.m.","waktu_subuh":"05:45 a.m.","waktu_syuruk":"07:03 a.m.","waktu_zohor":"01:13 a.m.","waktu_asar":"04:31 a.m.","waktu_maghrib":"07:20 a.m.","waktu_isyak":"08:31 a.m.","kod_zon":"SGR03","nama_zon":"Kuala Lumpur","tarikh_masa":"30-04-2018 14:51:27"}

image

afzafri commented 6 years ago

Terima kasih untuk maklum balas ini. Isu ni nampaknya berpunca dari laman rasmi e-solat JAKIM. Data untuk Terengganu tak dipaparkan http://www2.e-solat.gov.my/xml/today/?zon=TRG01

afzafri commented 5 years ago

Issue solved. JAKIM changed the XML source URL, hence resulting in the "undefined" problems for all the prayer time for each states. API Updated to scrape from the new XML source URL