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

Commit

Permalink
Added JsonFormat to getter.
Browse files Browse the repository at this point in the history
  • Loading branch information
kometen committed Aug 15, 2022
1 parent 95a7a57 commit cbad9a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/no/difi/statistics/model/TimeSeriesPoint.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.difi.statistics.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
Expand Down Expand Up @@ -28,6 +29,7 @@ private TimeSeriesPoint() {
// Use builder
}

@JsonFormat(shape = JsonFormat.Shape.STRING)
public ZonedDateTime getTimestamp() {
return timestamp;
}
Expand Down

0 comments on commit cbad9a8

Please sign in to comment.