diff options
author | Godin <mandrikov@gmail.com> | 2010-12-02 10:57:25 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-02 10:57:25 +0000 |
commit | eaccf635e3ec6c19690e5d19826c7f07aeeba85a (patch) | |
tree | 6f51c3fdcb58d0e3f724f5f9d3cc9fb074089761 | |
parent | 473065f87a746470a2d9c431155db0584805b95b (diff) | |
download | sonarqube-eaccf635e3ec6c19690e5d19826c7f07aeeba85a.tar.gz sonarqube-eaccf635e3ec6c19690e5d19826c7f07aeeba85a.zip |
Fix date/time format for gwt
-rw-r--r-- | sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java b/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java index 4b6205071fc..d2a0f877944 100644 --- a/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java +++ b/sonar-gwt-api/src/main/java/org/sonar/gwt/Utils.java @@ -66,14 +66,14 @@ public final class Utils { * @since 2.5 */ public static String formatDate(Date date) { - return date == null ? "" : DateTimeFormat.getFormat("dd/MM/yy").format(date); + return date == null ? "" : DateTimeFormat.getShortDateFormat().format(date); } /** * @since 2.5 */ public static String formatDateTime(Date date) { - return date == null ? "" : DateTimeFormat.getFormat("dd/MM/yy HH:mm").format(date); + return date == null ? "" : DateTimeFormat.getShortDateTimeFormat().format(date); } public static native void showError(String message) /*-{ |