I want to convert the given HH:mm from UTC to different time zones.

```
String myDateString = "02:30";
LocalTime localTime = LocalTime.parse(myDateString, DateTimeFormatter.ofPattern("HH:mm"));
int hour = localTime.get(ChronoField.CLOCK_HOUR_OF_DAY);
int minute = localTime.get(ChronoField.MINUTE_OF_HOUR);
int second = localTime.get(ChronoField.SECOND_OF_MINUTE);

System.out.println("UTC Time is "+ hour + ":" + minute);

Calendar pstTime = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles"));
hour = pstTime.get(hour);
minute = pstTime.get(minute);

```

getting error with this. any help appreciated.

> 
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
>  30
> 
> 
>