From c8c18ece009bafdcac9ed73446d8c2d4fbbf3256 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期三, 19 一月 2022 09:16:20 +0800 Subject: [PATCH] fixed TODO#134382 新增約訪紀錄: "defaultValue" is not defined error --- PAMapp/plugins/filters/date.filter.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PAMapp/plugins/filters/date.filter.ts b/PAMapp/plugins/filters/date.filter.ts index 9a15a4e..daa1f12 100644 --- a/PAMapp/plugins/filters/date.filter.ts +++ b/PAMapp/plugins/filters/date.filter.ts @@ -24,14 +24,14 @@ return compareDate.getFullYear() === today.getFullYear(); }; - const minutes = date.getMinutes() > 10 ? date.getMinutes() : `0${date.getMinutes()}`; + const minutes = date.getMinutes() > 9 ? date.getMinutes() : `0${date.getMinutes()}`; if (isThisYear(date)) { return isToday(date) ? `隞予 ${date.getHours()}:${minutes}` - : `${date.getMonth() + 1}���${date.getDate()}� ${date.getHours()}:${minutes}`; + : `${date.getMonth() + 1}/${date.getDate()} ${date.getHours()}:${minutes}`; } else { - return `${date.getFullYear()}撟�${date.getMonth() + 1}���${date.getDate()}� ${date.getHours()}:${minutes}`; + return `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()} ${date.getHours()}:${minutes}`; }; }) -- Gitblit v1.8.0