Skip to content

Commit

Permalink
Note that the day header hook may receive UTC dates.
Browse files Browse the repository at this point in the history
For day headers that do not represent specific dates, like weekdays in a month view, the provided `Date` instant must be interpreted as UTC. If not done so, day headers may show the wrong weekday.
  • Loading branch information
rjkip committed Oct 3, 2024
1 parent e95125c commit f737852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _docs-v6/date-display/day-header-render-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Customize the header elements above the day cells in daygrid and timegrid views

`dayHeaderClassNames` - a [ClassName Input](classname-input) for adding classNames to the header `<th>` cell

`dayHeaderContent` - a [Content Injection Input](content-injection). Generated content is inserted *inside* the inner-most wrapper of the header cell. It does not replace the `<th>` cell.
`dayHeaderContent` - a [Content Injection Input](content-injection). Generated content is inserted _inside_ the inner-most wrapper of the header cell. It does not replace the `<th>` cell. For day headers that do not represent specific dates, like weekdays in a month view, the provided `Date` instant must be interpreted as UTC.

`dayHeaderDidMount` - called right after the `<th>` has been added to the DOM

Expand Down

0 comments on commit f737852

Please sign in to comment.