[Lada-commits] [PATCH] Sending Date as timestamp

Wald Commits scm-commit at wald.intevation.org
Fri May 8 11:49:24 CEST 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1431078555 -7200
# Node ID 975183ab775e02bf874c46f475d69cb4257c72de
# Parent  2e7e1a8bf79f382a8773b6e0de20474309cf8263
Sending Date as timestamp

diff -r 2e7e1a8bf79f -r 975183ab775e app/view/window/GenProbenFromMessprogramm.js
--- 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()
                 };
 
 


More information about the Lada-commits mailing list