Skip to content

Commit

Permalink
appliedDate
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhil56x committed Aug 8, 2024
1 parent d40a787 commit 912e743
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/api/admin/responses/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ export const POST = async (request: NextRequest) => {
})
: null;

response.dateApplied = new Date(
new Date(response.dateApplied).getTime() +
new Date(response.dateApplied).getTimezoneOffset() * 60000 +
19800000
);

response.dateApplied = response.dateApplied
? new Date(response.dateApplied).toLocaleString("en-IN", {
day: "2-digit",
Expand Down

0 comments on commit 912e743

Please sign in to comment.