Long timestamp = 1686190888000L; LocalDateTime localDateTime = Instant.ofEpochMilli(timestamp).atZone(ZoneOffset.ofHours(8)).toLocalDateTime(); localDateTime = localDateTime.plusMinutes(1); Long time = localDateTime.toInstant(ZoneOffset.ofHours(8)).toEpochMilli();