This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
/* eslint-disable */
|
||||
/* Xeslint-disable */
|
||||
export default {
|
||||
beforeCreate() {
|
||||
//debugger;
|
||||
@@ -124,7 +124,7 @@ export default {
|
||||
},
|
||||
dateOnly: {
|
||||
get() {
|
||||
//debugger;
|
||||
//TODO: this will likely need an improvement for forms where there should be an automatic pre-set time chosen like workorder labor;
|
||||
var defaultDateString = this.$dayjs()
|
||||
.utc()
|
||||
.add(this.$gzlocale.format().timeZoneOffset, "hour")
|
||||
@@ -138,9 +138,6 @@ export default {
|
||||
: defaultDateString;
|
||||
},
|
||||
set(value) {
|
||||
//debugger;
|
||||
//TODO: This needs to handle a null / empty this.timeOnly here by maybe defaulting to right now
|
||||
|
||||
this.date = this.$dayjs
|
||||
.utc(value + " " + this.timeOnly)
|
||||
.subtract(this.$gzlocale.format().timeZoneOffset, "hour")
|
||||
@@ -149,6 +146,7 @@ export default {
|
||||
},
|
||||
timeOnly: {
|
||||
get() {
|
||||
//TODO: this will likely need an improvement for forms where there should be an automatic pre-set time chosen like workorder labor;
|
||||
var defaultTimeString = this.$dayjs
|
||||
.utc()
|
||||
.add(this.$gzlocale.format().timeZoneOffset, "hour")
|
||||
@@ -162,9 +160,6 @@ export default {
|
||||
: defaultTimeString;
|
||||
},
|
||||
set(value) {
|
||||
//debugger;
|
||||
//TODO: This needs to handle a null / empty this.dateOnly here by maybe defaulting to right now
|
||||
|
||||
this.date = this.$dayjs
|
||||
.utc(this.dateOnly + " " + value)
|
||||
.subtract(this.$gzlocale.format().timeZoneOffset, "hour")
|
||||
|
||||
Reference in New Issue
Block a user