[PATCH] Bring date format on par with server format. Hopefully fixes flys/issue1445
Wald Commits
scm-commit at wald.intevation.org
Fri Apr 25 15:48:36 CEST 2014
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1398433566 -7200
# Node ID c023f19a77202f6c7afc696bc6489744c966382c
# Parent cd9c4764258f9f03b7df68be85c4d53e49b535c5
Bring date format on par with server format. Hopefully fixes flys/issue1445.
diff -r cd9c4764258f -r c023f19a7720 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixPeriodPanel.java
--- 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!");
}
}
More information about the Dive4Elements-commits
mailing list