Repository navigation
Conversation
알림·문의·공지·회원 가입일은 브라우저 시간대, 스터디 날짜는 브라우저, 대시보드는 프로필 시간대로 화면마다 기준이 달랐다. useDisplayTimeZone 이 로그인 때 받은 프로필 시간대(세션 user 의 timeZone, 없으면 서울)를 돌려주게 하고, 날짜를 그리는 화면이 모두 이 값을 쓴다. 화면마다 기준 시간대를 한 줄로 밝힌다. 일정 표·출석은 반 시간대를 그대로 쓴다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
titaniper
added a commit
that referenced
this pull request
Nov 18, 2026
Contributor
Author
|
develop 에 이 PR 브랜치를 반영했습니다 (1f7806a). stage 에서 prober 테스트 케이스로 확인한 뒤 결과를 여기 남기겠습니다. |
Contributor
Author
|
stage 에서 확인했고 통과입니다. 세션 프로필 시간대만 바꿔 보니 진행 시작일이 서울 11-26, 밴쿠버 11-25 로 보이고 화면마다 기준 시간대 안내가 붙습니다. 프로필을 바꾼 뒤에는 다시 로그인해야 반영됩니다. |
로그인 뒤 사이트에서 바꾼 시간대가 다시 로그인하지 않아도 반영된다. 다른 탭이 시간대만 고친 것은 같은 세션으로 보고 다시 접속을 묻지 않는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇을 왜
백오피스 시각이 화면마다 다른 시간대 기준이었습니다. 알림 이력·템플릿·공지·문의·회원 가입일·스터디 목록과 폼은 브라우저 시간대, 대시보드는 프로필 시간대, 일정 표는 반 시간대. 북미에서 접속한 운영자에게 같은 마감일이 화면마다 다른 날로 보였습니다.
원인
useDisplayTimeZone이 브라우저 → 서울 순서만 봤고,formatStamp두 벌과 회원 가입일(toLocaleDateString)은 아예 시간대를 받지 않고 브라우저 기본값으로 그렸습니다. 프로필 시간대는 로그인 응답에 있었지만 BFF 스키마가timeZone을 버렸습니다.바꾼 것
lib/use-display-timezone.ts: 세션 user(bo_user)의timeZone, 없거나 잘못된 값이면Asia/Seoul. 로그인 스키마(authAccountSchema·sessionUserSchema)가timeZone을 통과시킨다zonedDate), 스터디 목록·폼(이미 훅을 쓰던 곳). 문의 시각은schedule/time.ts의wallParts를 재사용TimezoneNote가 프로필 기준을 한 줄로 밝히고(표의 시각은 내 프로필 시간대 기준입니다 (북미 서부 · 밴쿠버 · PCT)), 알림 이력·템플릿·공지·문의 목록/상세·회원·스터디 목록·스터디 폼(마감일·시작일)에 붙임확인
StudyInfoTab.test: 프로필이 America/Vancouver 면 마감일2027-07-02T06:59:59Z를2027-07-01로 보이고,2027-07-10으로 고치면2027-07-11T06:59:59.000Z를 보낸다notifications.behavior.test: 프로필이 밴쿠버면 이력 시각이26. 07. 15. 02:00, 안내가 밴쿠버tsc --noEmit· eslint(경고 0) · vitest 514건 통과 ·check-component-drift통과정한 것
/api/me를 화면마다 다시 부르지 않고 로그인 응답의account.timeZone(같은 값)을 세션에 둔다. 그래서 이 PR 배포 전에 로그인한 세션과 프로필을 바꾼 직후는 다시 로그인해야 반영됩니다(그 전에는 서울)🤖 Generated with Claude Code