Merge branch 'release-0.6.7' 0.6.7
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 12 Sep 2011 13:04:50 +0000 (15:04 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 12 Sep 2011 13:04:50 +0000 (15:04 +0200)
pom.xml
src/main/java/net/pterodactylus/sone/main/SonePlugin.java
src/main/java/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.java

diff --git a/pom.xml b/pom.xml
index a087474..037d3be 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
        <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>
index 738c0d1..d642dd8 100644 (file)
@@ -83,7 +83,7 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr
        }
 
        /** 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);
index 31ec399..f03e6e4 100644 (file)
@@ -52,7 +52,6 @@ public class GetTimesAjaxPage extends JsonPage {
         */
        @Override
        protected JsonObject createJsonObject(Request request) {
-               long now = System.currentTimeMillis();
                String allIds = request.getHttpRequest().getParam("posts");
                JsonObject postTimes = new JsonObject();
                if (allIds.length() > 0) {
@@ -79,9 +78,8 @@ public class GetTimesAjaxPage extends JsonPage {
                                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())));