This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new d2c2ecbc fix: use declared dayjs dependency for instance dates (#664)
d2c2ecbc is described below

commit d2c2ecbc8f39802428f0e699b1e5de269bcafa58
Author: Efe <[email protected]>
AuthorDate: Fri Sep 25 11:19:43 2026 +0300

    fix: use declared dayjs dependency for instance dates (#664)
---
 src/routes/System/Instance/index.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/routes/System/Instance/index.js 
b/src/routes/System/Instance/index.js
index 774da9f4..05d47716 100644
--- a/src/routes/System/Instance/index.js
+++ b/src/routes/System/Instance/index.js
@@ -29,7 +29,7 @@ import {
   Typography,
 } from "antd";
 import { connect } from "dva";
-import { format } from "date-fns";
+import dayjs from "dayjs";
 import * as echarts from "echarts";
 import { resizableComponents } from "../../../utils/resizable";
 import { getCurrentLocale, getIntlContent } from "../../../utils/IntlUtils";
@@ -401,7 +401,7 @@ export default class Instance extends Component {
           render: (text) => {
             return (
               <div style={{ color: "#1f640a" }}>
-                {format(new Date(text), "YYYY-MM-DD HH:mm:ss") || "----"}
+                {dayjs(text).format("YYYY-MM-DD HH:mm:ss") || "----"}
               </div>
             );
           },
@@ -417,7 +417,7 @@ export default class Instance extends Component {
           render: (text) => {
             return (
               <div style={{ color: "#1f640a" }}>
-                {format(new Date(text), "YYYY-MM-DD HH:mm:ss") || "----"}
+                {dayjs(text).format("YYYY-MM-DD HH:mm:ss") || "----"}
               </div>
             );
           },

Reply via email to