Explorar el Código

fix: 全局日期格式化缺少秒(大多数场景日期格式都需要携带秒!)

zuihou hace 3 años
padre
commit
5225345496
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      src/utils/dateUtil.ts
  2. 1 1
      src/utils/http/axios/helper.ts

+ 1 - 1
src/utils/dateUtil.ts

@@ -3,7 +3,7 @@
  */
 import moment from 'moment';
 
-const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm';
+const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';
 const DATE_FORMAT = 'YYYY-MM-DD ';
 
 export function formatToDateTime(

+ 1 - 1
src/utils/http/axios/helper.ts

@@ -1,6 +1,6 @@
 import { isObject, isString } from '/@/utils/is';
 
-const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm';
+const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';
 
 export function joinTimestamp<T extends boolean>(
   join: boolean,