implement timezone

This commit is contained in:
LouisLam
2021-07-01 21:47:14 +08:00
parent 1d64f643b1
commit 55bd6b6d7a
9 changed files with 441 additions and 384 deletions

View File

@@ -18,7 +18,8 @@ export default {
computed: {
displayText() {
return this.value
let format = "YYYY-MM-DD HH:mm:ss";
return dayjs.utc(this.value).tz(this.$root.timezone).format(format)
},
}
}

View File

@@ -15,7 +15,7 @@
<label for="floatingPassword">Password</label>
</div>
<div class="form-check mb-3 mt-3">
<div class="form-check mb-3 mt-3" >
<label>
<input type="checkbox" value="remember-me" class="form-check-input" id="remember" v-model="remember">