Skip to content

Commit

Permalink
Truncate directory json output timestamps to millisecond precision
Browse files Browse the repository at this point in the history
To maintain backwards compatibility
  • Loading branch information
tgianos committed Jan 31, 2022
1 parent 12fa839 commit e558009
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
*/
package com.netflix.genie.web.resources.writers;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.google.common.collect.Lists;
import com.netflix.genie.common.external.util.GenieObjectMapper;
import com.netflix.genie.common.util.JsonUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.catalina.util.ServerInfo;
Expand Down Expand Up @@ -268,6 +270,7 @@ public static class Entry {
@Min(0)
private long size;
@NotNull
@JsonSerialize(using = JsonUtils.InstantMillisecondSerializer.class)
private Instant lastModified;
}
}

0 comments on commit e558009

Please sign in to comment.