changeset 761:975183ab775e

Sending Date as timestamp
author Dustin Demuth <dustin@intevation.de>
date Fri, 08 May 2015 11:49:15 +0200
parents 2e7e1a8bf79f
children 1f3837b513d9
files app/view/window/GenProbenFromMessprogramm.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/window/GenProbenFromMessprogramm.js	Fri May 08 11:38:00 2015 +0200
+++ b/app/view/window/GenProbenFromMessprogramm.js	Fri May 08 11:49:15 2015 +0200
@@ -36,8 +36,8 @@
             handler: function() {
                 var jsondata = {
                     id: me.record.id,
-                    start: me.down('datetime [name=start]').getValue(),
-                    end: me.down('datetime [name=end]').getValue()
+                    start: new Date(me.down('datetime [name=start]').getValue()).valueOf(),
+                    end: new Date(me.down('datetime [name=end]').getValue()).valueOf()
                 };
 
 

http://lada.wald.intevation.org