mirror of https://github.com/langgenius/dify.git
Update web/app/components/plugins/reference-setting-modal/auto-update-setting/utils.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ed5a5962d2
commit
ebec1cf2d8
|
|
@ -23,7 +23,7 @@ export const convertLocalSecondsToUTCDaySeconds = (secondsInDay: number, localTi
|
|||
}
|
||||
|
||||
export const dayjsToTimeOfDay = (date?: Dayjs): number => {
|
||||
if(!date) return 0
|
||||
if (!date) return 0
|
||||
return date.hour() * 3600 + date.minute() * 60
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue