[WEB-761] fix: Time zone date misalignment (#3986)
* fix date time misalignment * fix failing build * fix gantt chart view position fix * comments for getDate method * remove new Date() where not required * changes from my self review
This commit is contained in:
parent
aa3702cd46
commit
1a462711e1
41 changed files with 303 additions and 192 deletions
|
|
@ -7,6 +7,7 @@ import { GanttChartRoot, IBlockUpdateData, ModuleGanttSidebar } from "components
|
|||
import { ModuleGanttBlock } from "components/modules";
|
||||
// types
|
||||
import { IModule } from "@plane/types";
|
||||
import { getDate } from "helpers/date-time.helper";
|
||||
|
||||
export const ModulesListGanttChartView: React.FC = observer(() => {
|
||||
// router
|
||||
|
|
@ -32,8 +33,8 @@ export const ModulesListGanttChartView: React.FC = observer(() => {
|
|||
data: block,
|
||||
id: block.id,
|
||||
sort_order: block.sort_order,
|
||||
start_date: block.start_date ? new Date(block.start_date) : null,
|
||||
target_date: block.target_date ? new Date(block.target_date) : null,
|
||||
start_date: getDate(block.start_date),
|
||||
target_date: getDate(block.target_date),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue