This commit is contained in:
2019-06-06 21:42:12 +00:00
parent 8915605d0b
commit 12042a17c2
2 changed files with 31 additions and 4 deletions

View File

@@ -54,9 +54,10 @@
</div>
</template>
<script>
/* xxeslint-disable */
/* eslint-disable */
export default {
beforeCreate() {
//check pre-requisites exist just in case
if (this.$gzdevmode()) {
if (!this.$dayjs) {
@@ -106,6 +107,7 @@ export default {
: "";
},
formatDate() {
return this.value
? this.$dayjs
.utc(this.value)
@@ -122,7 +124,9 @@ export default {
: "";
},
dateOnly: {
get() {
return this.$dayjs
.utc(this.value)
.add(this.$gzlocale.format().timeZoneOffset, "hour")