Commit 5225345496b0e66e7ddbc550ee9d7dbcea4a187a
1 parent
a248e200
fix: 全局日期格式化缺少秒(大多数场景日期格式都需要携带秒!)
Showing
2 changed files
with
2 additions
and
2 deletions
src/utils/dateUtil.ts
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | */ | 3 | */ |
4 | import moment from 'moment'; | 4 | import moment from 'moment'; |
5 | 5 | ||
6 | -const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm'; | 6 | +const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'; |
7 | const DATE_FORMAT = 'YYYY-MM-DD '; | 7 | const DATE_FORMAT = 'YYYY-MM-DD '; |
8 | 8 | ||
9 | export function formatToDateTime( | 9 | export function formatToDateTime( |
src/utils/http/axios/helper.ts
1 | import { isObject, isString } from '/@/utils/is'; | 1 | import { isObject, isString } from '/@/utils/is'; |
2 | 2 | ||
3 | -const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm'; | 3 | +const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'; |
4 | 4 | ||
5 | export function joinTimestamp<T extends boolean>( | 5 | export function joinTimestamp<T extends boolean>( |
6 | join: boolean, | 6 | join: boolean, |