public LocalDateTime convertUTCToLocalTime(String timeStamp) { Long timeLong = Long.parseLong(timeStamp) * 1000L; Date timeDate = new java.util.Date(timeLong); String date = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(timeDate); DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); LocalDateTime ldt = LocalDateTime.parse(date, df); return ldt; }