mirror of https://github.com/langgenius/dify.git
Update web/app/components/base/date-and-time-picker/utils/dayjs.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
ebec1cf2d8
commit
a9a6e773a1
|
|
@ -83,7 +83,7 @@ export const getDateWithTimezone = (props: { date?: Dayjs, timezone?: string })
|
|||
// Asia/Shanghai -> UTC+8
|
||||
const DEFAULT_OFFSET_STR = 'UTC+0'
|
||||
export const convertTimezoneToOffsetStr = (timezone?: string) => {
|
||||
if(!timezone)
|
||||
if (!timezone)
|
||||
return DEFAULT_OFFSET_STR
|
||||
const tzItem = tz.find(item => item.value === timezone)
|
||||
if(!tzItem)
|
||||
|
|
|
|||
Loading…
Reference in New Issue