From e897a96c171b4a6eed7a20e3f2f97bd85f24a718 Mon Sep 17 00:00:00 2001 From: Substancia Date: Mon, 2 Oct 2023 19:26:47 +0530 Subject: [PATCH 1/8] [empty commit] pull request for Substancia From dbaf84fe39a5d8b28ca781d71fba043fd20f431e Mon Sep 17 00:00:00 2001 From: Substancia Date: Mon, 2 Oct 2023 19:27:49 +0530 Subject: [PATCH 2/8] feat: add support for 12-hour time format --- src/components/Datetime.vue | 6 ++++- src/components/PingChart.vue | 45 +++++++++++++++++++++++++++++++++--- src/mixins/datetime.js | 12 ++++++++-- src/pages/Details.vue | 11 +++++++-- 4 files changed, 66 insertions(+), 8 deletions(-) diff --git a/src/components/Datetime.vue b/src/components/Datetime.vue index 0d4e182cd..7e64b85fe 100644 --- a/src/components/Datetime.vue +++ b/src/components/Datetime.vue @@ -15,6 +15,10 @@ export default { type: Boolean, default: false, }, + use12HourTimeFormat: { + type: Boolean, + default: false + }, }, computed: { @@ -22,7 +26,7 @@ export default { if (this.dateOnly) { return this.$root.date(this.value); } else { - return this.$root.datetime(this.value); + return this.$root.datetime(this.value, this.use12HourTimeFormat); } }, }, diff --git a/src/components/PingChart.vue b/src/components/PingChart.vue index 9502eb84c..41a7d5c54 100644 --- a/src/components/PingChart.vue +++ b/src/components/PingChart.vue @@ -1,6 +1,10 @@