Skip to content
DayPilot

React Scheduler > Mismatching time header groups values

Asked by Andy
10 months ago.

Hello,

Is it intentional or a bug that the end date of first and second time header group don’t match (ie: Nov 10 vs Nov 9)?

I am using `onBeforeTimeHeaderDomAdd` to render the time header as JSX. Thank you!

Answer posted by Dan Letecky [DayPilot]
10 months ago.

The value of args.header.end is correct: "2025-11-10T00:00:00" is the exact time point marking the end of the group.

However, you can’t simply use the date-only part of this date/time value when generating the group text. To get the expected printable value, you need to subtract one day.

Comment posted by Andy
10 months ago.

Thank you!

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.