Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixPeriodPanel.java @ 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 | ea9eef426962 |
children | 5b87aaac8447 |
comparison
equal
deleted
inserted
replaced
7837:cd9c4764258f | 7838:c023f19a7720 |
---|---|
178 @Override | 178 @Override |
179 public void success() { | 179 public void success() { |
180 List<FixEvent> list = fixInfo.getEvents(); | 180 List<FixEvent> list = fixInfo.getEvents(); |
181 | 181 |
182 // The date in FixEvent is always "de" locale, so it seems... | 182 // The date in FixEvent is always "de" locale, so it seems... |
183 DateTimeFormat df = DateTimeFormat.getFormat("yy.MM.yyyy"); | 183 DateTimeFormat df = DateTimeFormat.getFormat("dd.MM.yyyy"); |
184 | 184 |
185 if (!setFromAndToDate(list, df)) { | 185 if (!setFromAndToDate(list, df)) { |
186 // or perhaps "en"? | 186 GWT.log("FixPeriodPanel::success(): could not set from and to dates!"); |
187 df = DateTimeFormat.getFormat("MM/dd/yyyy"); | |
188 | |
189 if (!setFromAndToDate(list, df)) { | |
190 GWT.log("FixPeriodPanel::success(): could not set from and to dates!"); | |
191 } | |
192 } | 187 } |
193 } | 188 } |
194 | 189 |
195 protected boolean setFromAndToDate(List<FixEvent> list, DateTimeFormat df) { | 190 protected boolean setFromAndToDate(List<FixEvent> list, DateTimeFormat df) { |
196 try { | 191 try { |