summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNasser Grainawi <nasser@grainawi.org>2011-05-18 19:17:07 -0700
committerShawn O. Pearce <sop@google.com>2011-05-19 08:06:40 -0700
commit982e5972cb7e36cc68b0a440382a7ad6e7bdfe43 (patch)
treea002592f5c79ab002b4d6d47de771b0b42dc47fc
parent79548f158c8b36153dd9a65171f0062f1040a23d (diff)
Use DateTimeFormat getFormat with predefinedFormat
The get*TimeFormat functions were deprecated, replace with getFormat and specific predefinedFormat fields. Change-Id: Ib2e7a44b75f3d8dcaf2d683466cefd310de126bd
-rw-r--r--gerrit-gwtui/src/main/java/com/google/gerrit/client/FormatUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/FormatUtil.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/FormatUtil.java
index 81a9dd5df3..c915d1e17c 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/FormatUtil.java
+++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/FormatUtil.java
@@ -25,9 +25,9 @@ import java.util.Date;
public class FormatUtil {
private static final long ONE_YEAR = 182L * 24 * 60 * 60 * 1000;
- private static DateTimeFormat sTime = DateTimeFormat.getShortTimeFormat();
+ private static DateTimeFormat sTime = DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.TIME_SHORT);
private static DateTimeFormat sDate = DateTimeFormat.getFormat("MMM d");
- private static DateTimeFormat mDate = DateTimeFormat.getMediumDateFormat();
+ private static DateTimeFormat mDate = DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_MEDIUM);
private static DateTimeFormat dtfmt;
public static void setPreferences(AccountGeneralPreferences pref) {