chore: merge

This commit is contained in:
Joel
2024-12-18 17:54:18 +08:00
193 changed files with 8550 additions and 2659 deletions

12
web/utils/time.ts Normal file
View File

@ -0,0 +1,12 @@
import dayjs, { type ConfigType } from 'dayjs'
import utc from 'dayjs/plugin/utc'
dayjs.extend(utc)
export const isAfter = (date: ConfigType, compare: ConfigType) => {
return dayjs(date).isAfter(dayjs(compare))
}
export const formatTime = ({ date, dateFormat }: { date: ConfigType; dateFormat: string }) => {
return dayjs(date).format(dateFormat)
}