mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 20:20:59 +08:00
add duration to heartbeat, add timezone array
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user