Skip to content

Commit

Permalink
Use DateTimeFormat getFormat with predefinedFormat
Browse files Browse the repository at this point in the history
The get*TimeFormat functions were deprecated, replace with getFormat and
specific predefinedFormat fields.

Change-Id: Ib2e7a44b75f3d8dcaf2d683466cefd310de126bd
  • Loading branch information
nasserg authored and spearce committed May 19, 2011
1 parent 79548f1 commit 982e597
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
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) {
Expand Down

0 comments on commit 982e597

Please sign in to comment.