# HG changeset patch # User Torsten Irländer # Date 1370930784 -7200 # Node ID c846a2e37289208adf1e8a955e8a596331dbd1cd # Parent eb8a7d3cca898019e3051018d5c0df119d190e73 Set default date in Proben to today. diff -r eb8a7d3cca89 -r c846a2e37289 app/model/Probe.js --- a/app/model/Probe.js Wed Jun 05 18:05:00 2013 +0200 +++ b/app/model/Probe.js Tue Jun 11 08:06:24 2013 +0200 @@ -17,11 +17,11 @@ {name: "netzbetreiberId"}, {name: "probeId"}, {name: "probeNehmerId"}, - {name: "probeentnahmeBeginn", type: 'date', convert: ts2date}, - {name: "probeentnahmeEnde", type: 'date', convert: ts2date}, + {name: "probeentnahmeBeginn", type: 'date', convert: ts2date, defaultValue: new Date()}, + {name: "probeentnahmeEnde", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "probenartId"}, - {name: "solldatumBeginn", type: 'date', convert: ts2date}, - {name: "solldatumEnde", type: 'date', convert: ts2date}, + {name: "solldatumBeginn", type: 'date', convert: ts2date, defaultValue: new Date()}, + {name: "solldatumEnde", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "test"}, {name: "umwId"} ], @@ -33,7 +33,8 @@ api: { }, reader: { - type: 'json' + type: 'json', + root: 'data' } } });