Skip to content

Commit

Permalink
refactor: advisor sign time
Browse files Browse the repository at this point in the history
  • Loading branch information
pbc1017 committed Mar 16, 2024
1 parent e4e9c85 commit 4cf73ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions back/routes/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,19 @@ router.post("/advisor_sign", async (req, res) => {
}

try {
const signTime = new Date();
signTime.setHours(signTime.getHours() + 9); // UTC+9로 조정
const currentDateTimeUTC = new Date();
const kstOffset = 9 * 60; // 9 hours in minutes
currentDateTimeUTC.setMinutes(currentDateTimeUTC.getMinutes() + kstOffset);

await registration.update({
feedback_type: 1,
recent_edit: currentDateTimeUTC,
});

await RegistrationSign.create({
registration: id,
sign_type: 2,
sign_time: signTime,
sign_time: currentDateTimeUTC,
});

await registration.update({ advisor_plan });
Expand Down
2 changes: 1 addition & 1 deletion front/src/pages/club/ClubList/ClubList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ClubList = (): JSX.Element => {

const clubListRef = useRef<HTMLDivElement>(null);

const { status } = useMemberDuration(false);
const { status } = useMemberDuration(true);

// New function to load club data for a division
const loadClubsForDivision = (division: DivisionType) => {
Expand Down

0 comments on commit 4cf73ec

Please sign in to comment.