diff options
author | Vitaly Takmazov | 2019-03-01 19:49:10 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-01 19:49:10 +0300 |
commit | ece568a4bcd0ff8a2f84c974a458a2f498fd135d (patch) | |
tree | 58282836e2bc3bcc29f72630bdfba76202730909 /src/main/java/com/juick/formatters | |
parent | aabad2347aaf52e225541cb954e98ab509e9aa2f (diff) |
Message::timestamp -> Message::created
Diffstat (limited to 'src/main/java/com/juick/formatters')
-rw-r--r-- | src/main/java/com/juick/formatters/PlainTextFormatter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/formatters/PlainTextFormatter.java b/src/main/java/com/juick/formatters/PlainTextFormatter.java index 4cb07950..41d24e93 100644 --- a/src/main/java/com/juick/formatters/PlainTextFormatter.java +++ b/src/main/java/com/juick/formatters/PlainTextFormatter.java @@ -57,7 +57,7 @@ public class PlainTextFormatter { public static String formatPostSummary(Message m) { int cropLength = 384; - String timeAgo = pt.format(Date.from(m.getTimestamp())); + String timeAgo = pt.format(Date.from(m.getCreated())); String repliesCount = m.getReplies() == 1 ? "; 1 reply" : m.getReplies() == 0 ? "" : String.format("; %d replies", m.getReplies()); StringBuilder sb = new StringBuilder(); |