Add time input to contribution form #146

Merged
raucao merged 4 commits from feauture/141-time_picker into master 2019-08-12 12:52:08 +00:00
Showing only changes of commit e4a39ec67c - Show all commits
+5 -1
View File
4
@@ -50,7 +50,11 @@ export default Component.extend({
}
const attributes = this.getProperties(Object.keys(this.attributes));
const [ date, time ] = attributes.date[0].toISOString().split('T');
let dateInput = (attributes.date instanceof Array) ?
attributes.date[0] : attributes.date;
const [ date, time ] = dateInput.toISOString().split('T');
[ attributes.date, attributes.time ] = [ date, time ];
this.set('inProgress', true);