Browse Source

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

pull/1340/head
zuihou 5 years ago
parent
commit
5225345496
  1. 2
      src/utils/dateUtil.ts
  2. 2
      src/utils/http/axios/helper.ts

2
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(

2
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,

Loading…
Cancel
Save