From 0aa95fba47f34c4d51a921cdfac1f52ac1e652db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Pocrnji=C4=8D?= Date: Mon, 9 Mar 2026 18:49:08 +0100 Subject: [PATCH] Fixed clock call later --- resources/js/Pages/CallLaters/Index.vue | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/resources/js/Pages/CallLaters/Index.vue b/resources/js/Pages/CallLaters/Index.vue index 9ca17bb..e6527b0 100644 --- a/resources/js/Pages/CallLaters/Index.vue +++ b/resources/js/Pages/CallLaters/Index.vue @@ -24,6 +24,7 @@ import { } from "@/Components/ui/dropdown-menu"; import AppPopover from "@/Components/app/ui/AppPopover.vue"; +import { fmtDateTime } from "@/Utilities/functions"; const props = defineProps({ callLaters: Object, @@ -99,18 +100,6 @@ function isOverdue(item) { return new Date(item.call_back_at) < new Date(); } -function fmtDateTime(value) { - if (!value) return "-"; - const d = new Date(value); - if (isNaN(d.getTime())) return value; - const day = String(d.getDate()).padStart(2, "0"); - const month = String(d.getMonth() + 1).padStart(2, "0"); - const year = d.getFullYear(); - const hours = String(d.getHours()).padStart(2, "0"); - const minutes = String(d.getMinutes()).padStart(2, "0"); - return `${day}.${month}.${year} ${hours}:${minutes}`; -} - const columns = [ { key: "person", label: "Stranka / Primer", sortable: false }, { key: "contract", label: "Pogodba", sortable: false },