From a8b363613de7423ed7577ab3736fef01e11a5074 Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 24 Feb 2022 09:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=20=E9=83=A8=E5=88=86=E6=97=B6=E9=97=B4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20Invalid=20Date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/UserCenter/IndexInTeacher.cshtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml index ca25f241b..19bb34707 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/IndexInTeacher.cshtml @@ -497,7 +497,11 @@ }, date: function (value) { var date = new Date(value); - return date.toLocaleDateString(); + if (date instanceof Date && !isNaN(date.getTime())) { + return date.toLocaleDateString(); + } else { + return ''; + } }, company: function (value) { var result;