add duration to heartbeat, add timezone array

This commit is contained in:
LouisLam
2021-07-01 02:02:54 +08:00
parent 46f07fc17e
commit 82afddcfd6
5 changed files with 394 additions and 4 deletions

View File

@@ -5,6 +5,10 @@
<script>
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime"
import utc from 'dayjs/plugin/utc'
import timezone from 'dayjs/plugin/timezone' // dependent on utc plugin
dayjs.extend(utc)
dayjs.extend(timezone)
dayjs.extend(relativeTime)
export default {
@@ -14,6 +18,9 @@ export default {
computed: {
displayText() {
console.log(dayjs.tz.guess())
return this.value
},
}