BUG: collection measurement date/time field issues (#83)

This commit is contained in:
Matthew Ryan Dillon 2018-04-10 06:23:25 -07:00 committed by GitHub
parent d2c485af88
commit 234dc3a34c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -3,7 +3,7 @@ import DS from 'ember-data';
const { Model, attr, belongsTo } = DS;
export default Model.extend({
dateMeasured: attr('string'),
dateMeasured: attr('ccdb-date'),
timeMeasured: attr('string'),
waterTempC: attr('number'),
airTempC: attr('number'),

View file

@ -11,7 +11,7 @@ export default Model.extend({
collectionStartTime: attr('string-null-to-empty'),
collectionEndDate: attr('ccdb-date'),
collectionEndTime: attr('string-null-to-empty'),
notes: attr('string'),
notes: attr('string', { defaultValue: '' }),
project: belongsTo('project'),
studyLocation: belongsTo('study-location'),