aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-06 16:02:41 +0300
committerGravatar Vitaly Takmazov2018-11-06 16:02:41 +0300
commita098560c8d646b35e186f1a8c8c7da1184711a3f (patch)
tree5ee9412180ad75c9a8a6f324d4adbc18e99d0eca /juick-common/src/main/java
parent7dc9858a6bb336a9d50137af39bb70ab41bd9ec0 (diff)
use juick date format in PMs
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;
}