Hi everyone, I have a question. I’m building an application that displays time. I try to use online time from worldtimeapi.org, but sometimes it takes a while to get the clock. is there a way to know the time settings on the cellphone automatically or manually? or maybe there is a better solution than my block. Here are the blocks that I use. Thank you in advance.
Remember to add a condition: If response is a number
Cause if it isnt a number then you will get an error due to slow network or no internet connection as response, and if you do get then use network component to check whether there’s internet or no, if yes then use GetOnlineDateTime block again and if theres no internet use a notifier to notify the user theres no internet connection.