Open arun-saleth opened 1 year ago
It happens to me as well. I'd really like to have this working with time range.
But a temporary workaround to me was add the value of startHour to the date that comes from onPressBackground event, like this:
const onPressBackground = (date: string) => {
const start = dayjs(date).add(startHour, 'hours').toISOString()
const end = dayjs(start).add(1, 'h')
const newEvent: EventItem = {
start,
end: end.toISOString(),
id: '1',
title: 'Event',
color: colors.purple500
}
setEvent(newEvent)
}
when set start=7 end end=5 hour ,on while clicking 7-8 between it returns 12:00.the issue will happens all other hours also
@howljs can you check and fix this?