[PATCH 12 of 12] issue1542: Let client to i18n and formatting of dates

Wald Commits scm-commit at wald.intevation.org
Tue Nov 12 17:18:51 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1384272921 -3600
# Node ID 368d419ae4d10d7d1c5e50a67722ed9d75b243bb
# Parent  56480f609a340d57cbed5ac8fb47826dc4544cd5
issue1542: Let client to i18n and formatting of dates.

diff -r 56480f609a34 -r 368d419ae4d1 artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java	Tue Nov 12 17:14:52 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java	Tue Nov 12 17:15:21 2013 +0100
@@ -329,15 +329,13 @@
         cr.addAttr(el, "name", namedMainValue.getName());
         cr.addAttr(el, "type", mainValueType.getName());
         if (mainValue.getTimeInterval() != null) {
-            DateFormat df = 
-                DateFormat.getDateInstance(DateFormat.SHORT, Resources.getLocale(callMeta));
             if (mainValue.getTimeInterval().getStartTime() != null) {
                 cr.addAttr(el, "starttime",
-                    df.format(mainValue.getTimeInterval().getStartTime()));
+                    Long.toString(mainValue.getTimeInterval().getStartTime().getTime()));
             }
             if (mainValue.getTimeInterval().getStopTime() != null) {
                 cr.addAttr(el, "stoptime",
-                    df.format(mainValue.getTimeInterval().getStopTime()));
+                    Long.toString(mainValue.getTimeInterval().getStopTime().getTime()));
             }
         }
 


More information about the Dive4elements-commits mailing list