Waktu Solat Terengganu undefined
Closed this issue · 2 comments
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"}
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"}
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
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