🐞 fix(时间显示):修复ios和部分安卓手机上显示时间错误的问题

This commit is contained in:
xuan
2022-12-06 16:49:17 +08:00
parent ec7f234dc4
commit 46e5c33bf7
11 changed files with 58 additions and 58 deletions
+3 -3
View File
@@ -21,10 +21,10 @@ const TimePicker = (props: Props) => {
// 如果选的是同一天的日期, end 自动加一天
if (!end) {
// 判断如果没选下一天的时候
e.value.end = `${dayjs(new Date(start)).add(1, 'day').format('YYYY-MM-DD')} 00:00:00`
e.value.end = `${dayjs(new Date(start)).add(1, 'day').format('YYYY/MM/DD')} 00:00:00`
}
if (start === end) {
e.value.end = `${dayjs(new Date(start)).add(1, 'day').format('YYYY-MM-DD')} 00:00:00`
e.value.end = `${dayjs(new Date(start)).add(1, 'day').format('YYYY/MM/DD')} 00:00:00`
}
setTime(e)
}
@@ -34,7 +34,7 @@ const TimePicker = (props: Props) => {
<View className={styles['time-box']}>
<AtCalendar
isMultiSelect
format="YYYY-MM-DD 00:00:00"
format="YYYY/MM/DD 00:00:00"
currentDate={{
start,
end,