Fix formatting of timestamps in the future and a few seconds ago
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / GetTimesAjaxPage.java
index b52198b..02fd0c1 100644 (file)
@@ -150,10 +150,10 @@ public class GetTimesAjaxPage extends JsonPage {
                String text;
                long refresh;
                if (age < 0) {
-                       text = webInterface.getL10n().getDefaultString("View.Time.InTheFuture");
+                       text = webInterface.getL10n().getString("View.Time.InTheFuture");
                        refresh = TimeUnit.MINUTES.toMillis(5);
                } else if (age < TimeUnit.SECONDS.toMillis(20)) {
-                       text = webInterface.getL10n().getDefaultString("View.Time.AFewSecondsAgo");
+                       text = webInterface.getL10n().getString("View.Time.AFewSecondsAgo");
                        refresh = TimeUnit.SECONDS.toMillis(10);
                } else if (age < TimeUnit.SECONDS.toMillis(45)) {
                        text = webInterface.getL10n().getString("View.Time.HalfAMinuteAgo");