i find this solve
// Method to get the current UTC timestamp with millisecond precision public static String getCurrentUTCTimestamp() { return java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'") .withZone(java.time.ZoneOffset.UTC) .format(java.time.Instant.now().truncatedTo(java.time.temporal.ChronoUnit.MILLIS));