This answer has some of the time zones to use in your getTimeZone
method.
Calendar curTime = new GregorianCalendar();
curTime.setTimeZone(TimeZone.getTimeZone("Europe/Kiev"));
DateFormat dateFormat = new SimpleDateFormat("HH:mm");
dateFormat.setCalendar(curTime);
String time = dateFormat.format(curTime.getTime());
System.out.println(time);
Output:
19:22
1
solved Java gives me wrong time every time i try to get it [closed]