Permalink
Browse files

Switched to dates from timestamp for schedules.

  • Loading branch information...
1 parent 455fb28 commit bd9d43d380f5a07f2708bd6ee53b6e6087ee2b64 Andrew Kirilenko committed Apr 12, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 client/src/main/java/io/iron/ironworker/client/entities/ScheduleEntity.java
@@ -28,17 +28,17 @@
@SerializedName("status")
String status;
@SerializedName("last_run_time")
- long lastRunTime;
+ Date lastRunTime;
@SerializedName("run_count")
int runCount;
@SerializedName("payload")
String payload;
@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 bd9d43d

Please sign in to comment.