I´m trying to get the real current in my country, however the methods I used are dependant on the time on my device. I set the time on my device to 9 AM while in reality it was 7 PM and the following method returned 8 AM, which is ofcourse incorrect.
simpledate.setTimeZone(TimeZone.getTimeZone("Europe/Slovakia"));
to_time = simpledate.format(new Date());
Is there any way to get the real time in the country without it being dependant on system time? I assume the device must be connected to the Internet. Also my country uses DST, so it must take that into consideration too. Browsed similar question, none helped.