Im using the latest version of the Gantt Chart, the Week View is not displaying the week range correctly, and the corresponding week is being plotted under the wrong month.
As shown in the screenshot, the 16 Aug – 22 Aug week is rendered under July instead of August.
Code used:
const formatWeekRange = (start: Date): string => {
const startDate = dayjs(start)
const endDate = startDate.add(6, "day")
return ${startDate.format("DD MMM")} – ${endDate.format("D MMM")}
}
{
unit: DateFrequency.WEEK.toLowerCase(),
step: 1,
format: formatWeekRange,
css: (d: Date) => getCurrentPeriodClass(d, DateFrequency.WEEK.toLowerCase()),
}
I even tried by bypassing as per above format and directly printing the start date returned in "format", but i was still facing same issue, the week and the months were out of sync.
But this issue gets resolved if i add day scale along with week scale, please let me know how can i resolve this issue
kindly check below images for reference:
[https://postimg.cc/gallery/25Wnv8z](https://)