Skip to content

Commit

Permalink
fix the time difference in server and local time
Browse files Browse the repository at this point in the history
  • Loading branch information
web-dev-akash committed Sep 13, 2024
1 parent 8a9d6a1 commit 65d4f78
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions controllers/student.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,11 @@ studentRouter.post(
version: "v4",
auth: authClientObject,
});
const values = [
[
email,
description,
moment().format("YYYY-MM-DD"),
moment().utc(true).format("LT"),
],
];

const date = moment().format("YYYY-MM-DD");
const time = moment().add(5, "hours").add(30, "minutes").format("LT");

const values = [[email, description, date, time]];
const writeData = await sheet.spreadsheets.values.append({
auth,
spreadsheetId,
Expand Down

0 comments on commit 65d4f78

Please sign in to comment.