changeset 7838:c023f19a7720

Bring date format on par with server format. Hopefully fixes flys/issue1445.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 25 Apr 2014 15:46:06 +0200
parents cd9c4764258f
children 57bd0a586a9b
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixPeriodPanel.java
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixPeriodPanel.java	Thu Apr 17 17:06:15 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixPeriodPanel.java	Fri Apr 25 15:46:06 2014 +0200
@@ -180,15 +180,10 @@
         List<FixEvent> list = fixInfo.getEvents();
 
         // The date in FixEvent is always "de" locale, so it seems...
-        DateTimeFormat df = DateTimeFormat.getFormat("yy.MM.yyyy");
+        DateTimeFormat df = DateTimeFormat.getFormat("dd.MM.yyyy");
 
         if (!setFromAndToDate(list, df)) {
-            // or perhaps "en"?
-            df = DateTimeFormat.getFormat("MM/dd/yyyy");
-
-            if (!setFromAndToDate(list, df)) {
-                GWT.log("FixPeriodPanel::success(): could not set from and to dates!");
-            }
+            GWT.log("FixPeriodPanel::success(): could not set from and to dates!");
         }
     }
 

http://dive4elements.wald.intevation.org