This commit is contained in:
2019-03-04 19:22:53 +00:00
parent 175a442a3e
commit b71692ed8b
2 changed files with 9 additions and 4 deletions

View File

@@ -26,8 +26,13 @@ export default {
input: function(time) { input: function(time) {
// debugger; // debugger;
//Put back the time portion from before //Put back the time portion from before
var combined = that.value.substr(0, 9) + time; console.log("gztimepicker, on input, time is: " + time);
that.$emit("input", new Date(combined).toISOString()); var combined = that.value.substr(0, 11) + time;
console.log("gztimepicker, on input, COMBINED (STRING) time is: " + combined);
var theNewDate=new Date(combined).toISOString();
console.log("gztimepicker, on input, COMBINED (ISODATE CONVERTED)is: " + combined);
that.$emit("input",theNewDate);
}, },
"click:minute": function(time) { "click:minute": function(time) {

View File

@@ -49,10 +49,10 @@
></v-text-field> ></v-text-field>
</v-flex> </v-flex>
<v-flex xs12 sm6 lg4 xl3 px-2> <!-- <v-flex xs12 sm6 lg4 xl3 px-2>
<div>{{obj.startDate}}</div> <div>{{obj.startDate}}</div>
<gz-date-picker label="TESTStartDate" v-model="obj.startDate"></gz-date-picker> <gz-date-picker label="TESTStartDate" v-model="obj.startDate"></gz-date-picker>
</v-flex> </v-flex> -->
<v-flex xs12 sm6 lg4 xl3 px-2> <v-flex xs12 sm6 lg4 xl3 px-2>
<div>{{obj.startDate}}</div> <div>{{obj.startDate}}</div>