<modelVersion>4.0.0</modelVersion>
<groupId>net.pterodactylus</groupId>
<artifactId>sone</artifactId>
- <version>0.6.6</version>
+ <version>0.6.7</version>
<dependencies>
<dependency>
<groupId>net.pterodactylus</groupId>
}
/** The version. */
- public static final Version VERSION = new Version(0, 6, 6);
+ public static final Version VERSION = new Version(0, 6, 7);
/** The logger. */
private static final Logger logger = Logging.getLogger(SonePlugin.class);
*/
@Override
protected JsonObject createJsonObject(Request request) {
- long now = System.currentTimeMillis();
String allIds = request.getHttpRequest().getParam("posts");
JsonObject postTimes = new JsonObject();
if (allIds.length() > 0) {
if (reply == null) {
continue;
}
- long age = now - reply.getTime();
JsonObject replyTime = new JsonObject();
- Time time = getTime(age);
+ Time time = getTime(reply.getTime());
replyTime.put("timeText", time.getText());
replyTime.put("refreshTime", time.getRefresh() / Time.SECOND);
replyTime.put("tooltip", dateFormat.format(new Date(reply.getTime())));