From 5548b585df16eb2094a9e86b9ad8e9423c0737c8 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 14 Aug 2022 14:14:29 +0200 Subject: [PATCH] refactor MkTime component Add the datetime property to the HTML5 time tag for a machine readable timestamp. Add the ability to display only the date or the time. Change the computation of the relative time string to have precision based on the format chosen based on the choice above. Also changed the threshold for what is considered a date in the future so people do not see "future" on notes they just created and thus try to stop them from time traveling. --- .../client/src/components/global/time.vue | 49 ++++++++++++++----- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/packages/client/src/components/global/time.vue b/packages/client/src/components/global/time.vue index 801490225..b1bd779a2 100644 --- a/packages/client/src/components/global/time.vue +++ b/packages/client/src/components/global/time.vue @@ -1,5 +1,5 @@