Unix Timestamp Converter REST API v1

Unix Timestamp Converter REST API v1

https://showcase.api.linx.twenty57.net/UnixTime/fromunixtimestamp?unixtimestamp=1549892280

Currently I am working on a Weather app and I am able to get data from Open weather API. My ideas is to convert the Open weather API UNIX time to the actual datetime. Webviewer with UNIX time converter JavaScript works amazing on my Web Live preview but not on my iPhone. Then I found a UNIX TIME CONVERTER API (http://unixtime.co.za/), I used the same way as Open weather API to connect this API to my app. It doesnt work… Please teach me how to get data from this API.

Many Thanks.

1 Like

“It doesn’t work” is not enough detail to help you. Post a screenshot of what you tried and explain what did/did not work. Then someone can help you fix any issues with your blocks.

1 Like

I tested it with this code and I see it working.

I needed to round the seconds since 1970 as it seems this API does not like decimal places.

1 Like

thank you so much. It works on my iphone now. But is it normal that the web preview shows
image

1 Like

Yes, this is normal. It just says that this API will not work from the web test and need to work from the mobile.