changeset 7561:368d419ae4d1

issue1542: Let client to i18n and formatting of dates.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 12 Nov 2013 17:15:21 +0100
parents 56480f609a34
children 22b5d1c6e2c0
files artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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()));
             }
         }
 

http://dive4elements.wald.intevation.org