From a19f9a9f473df18aa9297f134b6161bca39ea0d5 Mon Sep 17 00:00:00 2001 From: liaowenlu <119066663@qq.com> Date: Thu, 31 Oct 2024 15:02:02 +0800 Subject: [PATCH] Fix the issue where the value of ${run_date} is one day smaller than the actual value --- .../scala/org/apache/linkis/common/variable/DateTypeUtils.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/variable/DateTypeUtils.scala b/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/variable/DateTypeUtils.scala index df6dff865d..e8f1e2c5ba 100644 --- a/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/variable/DateTypeUtils.scala +++ b/linkis-commons/linkis-common/src/main/scala/org/apache/linkis/common/variable/DateTypeUtils.scala @@ -78,7 +78,7 @@ object DateTypeUtils { val dateFormat = dateFormatLocal.get() val dateFormat_std = dateFormatStdLocal.get() val cal: Calendar = Calendar.getInstance() - cal.add(Calendar.DATE, -1) +// cal.add(Calendar.DATE, -1) if (std) { dateFormat_std.format(cal.getTime) } else {