Commit 73163ede authored by hewenhao's avatar hewenhao

Merge branch 'feature/2023-06-12-v1.1' of…

Merge branch 'feature/2023-06-12-v1.1' of dev.jiuaoedu.com:hewenhao/GeekLearnMathWeapp into feature/2023-06-12-v1.1
parents 7f4fb0de aab7de91
......@@ -15,8 +15,11 @@ function formatTime (date: Date): string {
.padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`
}
export function convertDateTime (input: string): string {
const date = new Date(input)
export function convertDateTime (value: string): string {
if (!value) {
return '-'
}
const date = new Date(value)
const monthDay = formatMonthDay(date)
const time = formatTime(date)
return `${monthDay} ${time}`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment