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

This commit is contained in:
zuihou 2021-10-29 20:09:43 +08:00
parent a248e20013
commit 5225345496
2 changed files with 2 additions and 2 deletions

View File

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

View File

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