|
@@ -85,7 +85,7 @@ public class ScheduledEvent implements ToXContentObject, Writeable {
|
|
|
|
|
|
public ScheduledEvent(StreamInput in) throws IOException {
|
|
|
description = in.readString();
|
|
|
- if (in.getVersion().onOrAfter(Version.CURRENT)) {
|
|
|
+ if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
|
|
|
startTime = in.readInstant();
|
|
|
endTime = in.readInstant();
|
|
|
} else {
|
|
@@ -146,7 +146,7 @@ public class ScheduledEvent implements ToXContentObject, Writeable {
|
|
|
@Override
|
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
|
out.writeString(description);
|
|
|
- if (out.getVersion().onOrAfter(Version.CURRENT)) {
|
|
|
+ if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
|
|
|
out.writeInstant(startTime);
|
|
|
out.writeInstant(endTime);
|
|
|
} else {
|