src/main/java/com/zandero/utils/InstantTimeUtils.java
public static OffsetDateTime toOffsetDateTime(Instant time, ZoneId zoneId) {

		Assert.notNull(time, "Missing time!");
		if (zoneId == null) {
			zoneId = ZoneId.from(time);
		}
		return OffsetDateTime.ofInstant(time, zoneId);
	}
public static OffsetDateTime toOffsetDateTime(Instant time, ZoneId zoneId) {

		Assert.notNull(time, "Missing time!");
		if (zoneId == null) {
			zoneId = ZoneId.from(time);
		}
		return OffsetDateTime.ofInstant(time, zoneId);
	}
Converts timestamp into OffsetDatetime

@param time   to be converted
@param zoneId desired zone or null to take instant zone id
@return OffsetDatetime representation of timestamp