Hello and thank you very much for your API. In Prayer Times Calendar by city adds “CST” to every timing. I think no need it because it confused people. Can you remove it please?
@matovsky This is the timezone, and it differs based on the location you query for. It’s actually needed because countries that implement Daylight Savings Time often change the name of the ‘time’ they use, and the results just start skipping or adding an hour, and that leads to a lot of confusion.
You have a few options to deal with this:
The timings are always in military time, so just use the first 5 characters and strip out the rest.
Use the ISO 8601 date format returned by the API and create a date object out of it - then you can do with the display as you wish, on the client side or server side (if you’re using the API server side). Just append &iso8601=true to your query parameters to get the date in that format, For instance: http://api.aladhan.com/v1/calendar?latitude=51.508515&longitude=-0.1254872&method=2&month=4&year=2017&adjustment=1&iso8601=true.
Hope this helps.
चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:
नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें
@matovsky This is the timezone, and it differs based on the location you query for. It’s actually needed because countries that implement Daylight Savings Time often change the name of the ‘time’ they use, and the results just start skipping or adding an hour, and that leads to a lot of confusion.
You have a few options to deal with this:
&iso8601=true
to your query parameters to get the date in that format, For instance:http://api.aladhan.com/v1/calendar?latitude=51.508515&longitude=-0.1254872&method=2&month=4&year=2017&adjustment=1&iso8601=true
.Hope this helps.