import java.time.OffsetDateTime;
import java.time.ZoneOffset;
class Main {
public static void main
(String[] args
) { String strDateTime
= "2023-01-09T23:51:44.595Z"; int offsetHour
= Integer.
parseInt(utcOffset.
replaceAll("[^0-9+-]",
"")); ZoneOffset zoneOffset = ZoneOffset.ofHours(offsetHour);
OffsetDateTime odtGiven = OffsetDateTime.parse(strDateTime);
OffsetDateTime odtDesired = odtGiven.withOffsetSameLocal(zoneOffset)
.withOffsetSameInstant(zoneOffset.UTC);
System.
out.
println(odtDesired
); }
}
aW1wb3J0IGphdmEudGltZS5PZmZzZXREYXRlVGltZTsKaW1wb3J0IGphdmEudGltZS5ab25lT2Zmc2V0OwoKY2xhc3MgTWFpbiB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICAgICAgU3RyaW5nIHN0ckRhdGVUaW1lID0gIjIwMjMtMDEtMDlUMjM6NTE6NDQuNTk1WiI7CiAgICAgICAgU3RyaW5nIHV0Y09mZnNldCA9ICJVVEMgKzYiOwogICAgICAgIGludCBvZmZzZXRIb3VyID0gSW50ZWdlci5wYXJzZUludCh1dGNPZmZzZXQucmVwbGFjZUFsbCgiW14wLTkrLV0iLCAiIikpOwogICAgICAgIFpvbmVPZmZzZXQgem9uZU9mZnNldCA9IFpvbmVPZmZzZXQub2ZIb3VycyhvZmZzZXRIb3VyKTsKICAgICAgICBPZmZzZXREYXRlVGltZSBvZHRHaXZlbiA9IE9mZnNldERhdGVUaW1lLnBhcnNlKHN0ckRhdGVUaW1lKTsKICAgICAgICBPZmZzZXREYXRlVGltZSBvZHREZXNpcmVkID0gb2R0R2l2ZW4ud2l0aE9mZnNldFNhbWVMb2NhbCh6b25lT2Zmc2V0KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLndpdGhPZmZzZXRTYW1lSW5zdGFudCh6b25lT2Zmc2V0LlVUQyk7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKG9kdERlc2lyZWQpOwogICAgfQp9