We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15c4bc commit 8c2be93Copy full SHA for 8c2be93
1 file changed
src/frontend/src/pages/WorkPackageForm/WorkPackageFormView.tsx
@@ -117,7 +117,7 @@ const WorkPackageFormView: React.FC<WorkPackageFormViewProps> = ({
117
const { userId } = user;
118
119
const transformDate = (date: Date) => {
120
- const month = date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : (date.getMonth() + 1).toString();
+ const month = date.getMonth() + 1 < 10 ? `0${date.getMonth()}` : (date.getMonth()).toString();
121
const day = date.getDate() < 10 ? `0${date.getDate()}` : date.getDate().toString();
122
return new Date(date.getFullYear(), Number(month), Number(day));
123
};
0 commit comments