Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Change TaskStatus.timestamp to Date #895

Merged
merged 1 commit into from
Sep 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
Not yet released.

- Support creating a service without specifying a name ([891][] Allow `ServiceSpec.name` to be nullable)
- Change `TaskStatus.timestamp` from `String` to `Date` ([895][])

[891]: https://github.com/spotify/docker-client/pull/891
[895]: https://github.com/spotify/docker-client/pull/895

## 8.8.5

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;

import java.util.Date;
import javax.annotation.Nullable;

@AutoValue
Expand All @@ -49,7 +50,7 @@ public abstract class TaskStatus {
public static final String TASK_STATE_REJECTED = "rejected";

@JsonProperty("Timestamp")
public abstract String timestamp();
public abstract Date timestamp();

@JsonProperty("State")
public abstract String state();
Expand All @@ -66,7 +67,7 @@ public abstract class TaskStatus {

@JsonCreator
static TaskStatus create(
@JsonProperty("Timestamp") final String timestamp,
@JsonProperty("Timestamp") final Date timestamp,
@JsonProperty("State") final String state,
@JsonProperty("Message") final String message,
@JsonProperty("Err") final String err,
Expand Down