diff options
author | Vitaly Takmazov | 2016-07-12 15:22:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-12 15:22:50 +0300 |
commit | 7ad313a4b0509d37fe5d8dfa215ab980c8c74ed0 (patch) | |
tree | cb477b0918a66ef59915ea85a38a4d162d36e51b /juick-core/src/main/java/com/juick/json | |
parent | 47ec7ca54927d586fe5c5dca3be377231cb59c11 (diff) |
fix date serializing with tests
Diffstat (limited to 'juick-core/src/main/java/com/juick/json')
-rw-r--r-- | juick-core/src/main/java/com/juick/json/MessageSerializer.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/juick-core/src/main/java/com/juick/json/MessageSerializer.java b/juick-core/src/main/java/com/juick/json/MessageSerializer.java index e8402d51..4238df60 100644 --- a/juick-core/src/main/java/com/juick/json/MessageSerializer.java +++ b/juick-core/src/main/java/com/juick/json/MessageSerializer.java @@ -39,7 +39,7 @@ public class MessageSerializer extends JSONSerializer<Message> { UserSerializer userSerializer = new UserSerializer(); PlaceSerializer placeSerializer = new PlaceSerializer(); - final SimpleDateFormat df; + private final SimpleDateFormat df; public MessageSerializer() { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); @@ -135,4 +135,8 @@ public class MessageSerializer extends JSONSerializer<Message> { return json; } + + public SimpleDateFormat getDf() { + return df; + } } |