1final DateTimeFormatter formatter = DateTimeFormatter
2 .ofPattern("yyyy-MM-dd HH:mm:ss")
3 .withZone(ZoneId.systemDefault());
4Instant result = Instant.from(formatter.parse(timestamp));
5