Skip to content

Commit

Permalink
added comments that were missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramneet04 committed Dec 25, 2024
1 parent 8ed38db commit 0bce5ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/timezoneUtils/dateTimeMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const traverseAndConvertDates = (
);
const convertedDateTime = convertFn(combinedDateTime);
const { date, time } = splitFn(convertedDateTime);
obj[dateField] = date;
obj[timeField] = time;
obj[dateField] = date; // Restore the original date field
obj[timeField] = time; // Restore the original time field
}
});

Expand All @@ -75,7 +75,7 @@ const traverseAndConvertDates = (
value as Record<string, unknown>,
convertFn,
splitFn,
);
); // Recursive call for nested objects/arrays
}
});
};
Expand Down

0 comments on commit 0bce5ad

Please sign in to comment.