aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r--juick-common/src/main/java/com/juick/Chat.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/Chat.java b/juick-common/src/main/java/com/juick/Chat.java
index c4f105dc..59c0a2dc 100644
--- a/juick-common/src/main/java/com/juick/Chat.java
+++ b/juick-common/src/main/java/com/juick/Chat.java
@@ -1,5 +1,7 @@
package com.juick;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
import java.time.Instant;
public class Chat extends User {
@@ -10,6 +12,7 @@ public class Chat extends User {
return lastMessageTimestamp;
}
+ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "UTC")
public void setLastMessageTimestamp(Instant lastMessageTimestamp) {
this.lastMessageTimestamp = lastMessageTimestamp;
}