Skip to content
Browse files

Fix for Rest api modification

  • Loading branch information...
1 parent 88ef1b9 commit 692fbf0d0a192a880cbce3339db86825b618c571 @richard-julien committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 client/src/main/java/io/iron/ironworker/client/entities/ScheduleEntity.java
View
12 client/src/main/java/io/iron/ironworker/client/entities/ScheduleEntity.java
@@ -28,7 +28,7 @@
@SerializedName("status")
String status;
@SerializedName("last_run_time")
- long lastRunTime;
+ Date lastRunTime;
@SerializedName("run_count")
int runCount;
@SerializedName("payload")
@@ -36,9 +36,9 @@
@SerializedName("msg")
String msg;
@SerializedName("created_at")
- long createdAt;
+ Date createdAt;
@SerializedName("updated_at")
- long updatedAt;
+ Date updatedAt;
protected ScheduleEntity() {
}
@@ -88,7 +88,7 @@ public String getStatus() {
}
public Date getLastRunTime() {
- return lastRunTime == 0 ? null : new Date(lastRunTime / 1000000);
+ return lastRunTime;
}
public int getRunCount() {
@@ -104,10 +104,10 @@ public String getMsg() {
}
public Date getCreatedAt() {
- return createdAt == 0 ? null : new Date(createdAt / 1000000);
+ return createdAt;
}
public Date getUpdatedAt() {
- return updatedAt == 0 ? null : new Date(updatedAt / 1000000);
+ return updatedAt;
}
}

0 comments on commit 692fbf0

Please sign in to comment.
Something went wrong with that request. Please try again.