|
@@ -29,7 +29,6 @@ import com.dmdirc.interfaces.GroupChat;
|
29
|
29
|
import com.dmdirc.interfaces.GroupChatUser;
|
30
|
30
|
|
31
|
31
|
import java.awt.Color;
|
32
|
|
-import java.util.Date;
|
33
|
32
|
|
34
|
33
|
import javax.swing.JEditorPane;
|
35
|
34
|
import javax.swing.JPanel;
|
|
@@ -49,8 +48,6 @@ public class TopicLabel extends JPanel {
|
49
|
48
|
|
50
|
49
|
/** A version number for this class. */
|
51
|
50
|
private static final long serialVersionUID = 1;
|
52
|
|
- /** How many milliseconds in a second. */
|
53
|
|
- private static final int MILLIS_IN_SECOND = 1000;
|
54
|
51
|
/** Topic this label represents. */
|
55
|
52
|
private final Topic topic;
|
56
|
53
|
/** The group chat to which this label belongs. */
|
|
@@ -138,7 +135,7 @@ public class TopicLabel extends JPanel {
|
138
|
135
|
}
|
139
|
136
|
add(label, "wmax 450, grow, push, wrap, gapleft 5, pad 0");
|
140
|
137
|
|
141
|
|
- label = new TextLabel("on " + new Date(topic.getTime() * MILLIS_IN_SECOND));
|
|
138
|
+ label = new TextLabel("on " + topic.getDate());
|
142
|
139
|
add(label, "wmax 450, grow, push, wrap, gapleft 5, pad 0");
|
143
|
140
|
|
144
|
141
|
add(new JSeparator(), "newline, span, growx, pushx");
|