mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-16 18:20:54 -04:00
add duration to heartbeat, add timezone array
This commit is contained in:
parent
46f07fc17e
commit
82afddcfd6
5 changed files with 394 additions and 4 deletions
|
@ -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
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue