This commit is contained in:
@@ -29,18 +29,11 @@ export default {
|
|||||||
console.log("gztimepicker, on input, time is: " + time);
|
console.log("gztimepicker, on input, time is: " + time);
|
||||||
var combined = that.value.substr(0, 11) + time;
|
var combined = that.value.substr(0, 11) + time;
|
||||||
console.log("gztimepicker, on input, COMBINED (STRING) time is: " + combined);
|
console.log("gztimepicker, on input, COMBINED (STRING) time is: " + combined);
|
||||||
var theNewDate=new Date(combined).toISOString();
|
var theNewDate=new Date(Date.UTC(combined)).toISOString();
|
||||||
console.log("gztimepicker, on input, COMBINED (ISODATE CONVERTED)is: " + combined);
|
console.log("gztimepicker, on input, COMBINED (ISODATE CONVERTED)is: " + combined);
|
||||||
|
|
||||||
that.$emit("input",theNewDate);
|
that.$emit("input",theNewDate);
|
||||||
|
|
||||||
},
|
|
||||||
"click:minute": function(time) {
|
|
||||||
// debugger;
|
|
||||||
//Put back the time portion from before
|
|
||||||
var combined = that.value.substr(0, 9) + time;
|
|
||||||
that.$emit("input", new Date(combined).toISOString());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -100,50 +100,23 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
obj: {
|
obj: {
|
||||||
startDate: "2000-01-12T10:12:39.594206"
|
|
||||||
// id: 1,
|
|
||||||
// concurrencyToken: 1,
|
|
||||||
// ownerId: 1,
|
|
||||||
// name: "...",
|
|
||||||
// serial: 1,
|
|
||||||
// dollarAmount: 1.1,
|
|
||||||
// active: true,
|
|
||||||
// roles: 1,
|
|
||||||
// startDate: "2000-01-12T10:12:39.594206",
|
|
||||||
// endDate: "2000-01-12T13:40:59.986405",
|
|
||||||
// notes: "...",
|
|
||||||
// count: 1,
|
|
||||||
// customFields: null,
|
|
||||||
// tags: []
|
|
||||||
},
|
},
|
||||||
obj2: {
|
lc: locale
|
||||||
startDate: "2000-02-12"
|
|
||||||
},
|
|
||||||
startDate: "2000-03-12",
|
|
||||||
lc: locale,
|
|
||||||
menu2: false,
|
|
||||||
|
|
||||||
testDate: new Date().toISOString().substr(0, 10)
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
dateFormatted() {
|
// dateFormatted() {
|
||||||
// var value = this.obj.startDate;
|
// // var value = this.obj.startDate;
|
||||||
// if (!value) return "";
|
// // if (!value) return "";
|
||||||
// var dj = dayjs(value);
|
// // var dj = dayjs(value);
|
||||||
// return dj.format("YYYY-MM-DD hh:mm:ss A");
|
// // return dj.format("YYYY-MM-DD hh:mm:ss A");
|
||||||
|
|
||||||
return this.obj.startDate
|
// return this.obj.startDate
|
||||||
? dayjs(this.obj.startDate).format("YYYY-MM-DD hh:mm:ss A")
|
// ? dayjs(this.obj.startDate).format("YYYY-MM-DD hh:mm:ss A")
|
||||||
: "";
|
// : "";
|
||||||
|
|
||||||
//return this.obj.startDate ? moment(this.date).format("dddd, MMMM Do YYYY") : "";
|
// //return this.obj.startDate ? moment(this.date).format("dddd, MMMM Do YYYY") : "";
|
||||||
},
|
// }
|
||||||
pickStartDate() {
|
|
||||||
return this.obj.startDate ? dayjs(this.obj.startDate).toDate() : null;
|
|
||||||
// var copiedDate = new Date(date.getTime());
|
|
||||||
//obj.startDate.toISOString().substr(0, 10);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
beforeRouteEnter(to, from, next) {
|
beforeRouteEnter(to, from, next) {
|
||||||
//Cache all required lt keys
|
//Cache all required lt keys
|
||||||
|
|||||||
Reference in New Issue
Block a user